Skip to content

Commit

Permalink
Put _v_f back in for CMF's FSPythonScripts, for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
Evan Simpson committed Jun 10, 2003
1 parent 70c83e5 commit 31570a0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions PythonScript.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
Python code.
"""

__version__='$Revision: 1.45 $'[11:-2]
__version__='$Revision: 1.46 $'[11:-2]

import sys, os, traceback, re, marshal, new
from Globals import DTMLFile, MessageDialog, package_home
Expand Down Expand Up @@ -210,7 +210,7 @@ def __setstate__(self, state):
self._compile()
self._v_change = 1
elif self._code is None:
self._v_ft = None
self._v_ft = self._v_f = None
else:
self._newfun(marshal.loads(self._code))

Expand All @@ -224,7 +224,7 @@ def _compile(self):
self.warnings = tuple(r[2])
if errors:
self._code = None
self._v_ft = None
self._v_ft = self._v_f = None
self._setFuncSignature((), (), 0)
# Fix up syntax errors.
filestring = ' File "<string>",'
Expand Down Expand Up @@ -255,7 +255,7 @@ def _newfun(self, code):
}
l = {}
exec code in g, l
f = l.values()[0]
self._v_f = f = l.values()[0]
self._v_ft = (f.func_code, g, f.func_defaults or ())
return f

Expand Down

0 comments on commit 31570a0

Please sign in to comment.