[Zodb-checkins] CVS: Zope3/lib/python/Persistence - Module.py:1.27

Jeremy Hylton jeremy@zope.com
Tue, 8 Oct 2002 16:58:44 -0400


Update of /cvs-repository/Zope3/lib/python/Persistence
In directory cvs.zope.org:/tmp/cvs-serv9050

Modified Files:
	Module.py 
Log Message:
Move import of __builtin__ to the top-level


=== Zope3/lib/python/Persistence/Module.py 1.26 => 1.27 ===
--- Zope3/lib/python/Persistence/Module.py:1.26	Tue Oct  8 09:33:01 2002
+++ Zope3/lib/python/Persistence/Module.py	Tue Oct  8 16:58:43 2002
@@ -30,6 +30,9 @@
 
 from Transaction import get_transaction
 
+# builtins are explicitly assigned when a module is unpickled
+import __builtin__
+
 # XXX Is this comment still relevant?
 #
 # There seems to be something seriously wrong with a module pickle
@@ -66,7 +69,6 @@
         return d
 
     def __setstate__(self, state):
-        import __builtin__
         state["__builtins__"] = __builtin__
         self.__dict__.update(state)