Browse Source

ob-python: Convert two defvars to defconsts.

* lisp/ob-python.el (org-babel-python-wrapper-method):
(org-babel-python-pp-wrapper-method): Convert from defvar to defconst.
Aaron Ecay 10 năm trước cách đây
mục cha
commit
a0095ce1a7
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      lisp/ob-python.el

+ 2 - 2
lisp/ob-python.el

@@ -224,13 +224,13 @@ then create.  Return the initialized session."
 
 (defvar org-babel-python-eoe-indicator "'org_babel_python_eoe'"
   "A string to indicate that evaluation has completed.")
-(defvar org-babel-python-wrapper-method
+(defconst org-babel-python-wrapper-method
   "
 def main():
 %s
 
 open('%s', 'w').write( str(main()) )")
-(defvar org-babel-python-pp-wrapper-method
+(defconst org-babel-python-pp-wrapper-method
   "
 import pprint
 def main():