[Zodb-checkins] CVS: ZODB3/ZODB - Transaction.py:1.39

Guido van Rossum guido@python.org
Fri, 27 Sep 2002 14:37:24 -0400


Update of /cvs-repository/ZODB3/ZODB
In directory cvs.zope.org:/tmp/cvs-serv28430

Modified Files:
	Transaction.py 
Log Message:
If you're going to patch __builtin__, at least do it right, by
importing __builtin__, rather than using __main__.__builtins__.


=== ZODB3/ZODB/Transaction.py 1.38 => 1.39 ===
--- ZODB3/ZODB/Transaction.py:1.38	Wed Sep 11 14:41:24 2002
+++ ZODB3/ZODB/Transaction.py	Fri Sep 27 14:37:24 2002
@@ -404,5 +404,6 @@
 
 del _t
 
-import __main__
-__main__.__builtins__.get_transaction=get_transaction
+import __builtin__
+__builtin__.get_transaction=get_transaction
+del __builtin__