[Zope-Checkins]
CVS: Releases/Zope/lib/python/Products/PythonScripts
- PythonScript.py:1.52
Evan Simpson
evan at 4-am.com
Thu Jan 15 14:42:02 EST 2004
Update of /cvs-repository/Releases/Zope/lib/python/Products/PythonScripts
In directory cvs.zope.org:/tmp/cvs-serv18111/lib/python/Products/PythonScripts
Modified Files:
PythonScript.py
Log Message:
Collector #1074: Change Scripts' __name__ to None, added unit tests for the effect of __name__ on class definitions and imports.
=== Releases/Zope/lib/python/Products/PythonScripts/PythonScript.py 1.51 => 1.52 ===
--- Releases/Zope/lib/python/Products/PythonScripts/PythonScript.py:1.51 Tue Nov 18 08:17:06 2003
+++ Releases/Zope/lib/python/Products/PythonScripts/PythonScript.py Thu Jan 15 14:41:31 2004
@@ -256,7 +256,7 @@
def _newfun(self, code):
g = {'__debug__': __debug__,
- '__name__': self.id,
+ '__name__': None,
'__builtins__': safe_builtins,
'_getattr_': guarded_getattr,
'_getitem_': guarded_getitem,
More information about the Zope-Checkins
mailing list