Commit 3b4b2508 authored by Guido van Rossum's avatar Guido van Rossum

If you're going to patch __builtin__, at least do it right, by

importing __builtin__, rather than using __main__.__builtins__.
parent 19ece134
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
############################################################################## ##############################################################################
"""Transaction management """Transaction management
$Id: Transaction.py,v 1.38 2002/09/11 18:41:24 jeremy Exp $""" $Id: Transaction.py,v 1.39 2002/09/27 18:37:24 gvanrossum Exp $"""
__version__='$Revision: 1.38 $'[11:-2] __version__='$Revision: 1.39 $'[11:-2]
import time, sys, struct, POSException import time, sys, struct, POSException
from struct import pack from struct import pack
...@@ -404,5 +404,6 @@ else: ...@@ -404,5 +404,6 @@ else:
del _t del _t
import __main__ import __builtin__
__main__.__builtins__.get_transaction=get_transaction __builtin__.get_transaction=get_transaction
del __builtin__
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment