[Zodb-checkins] CVS: Zope2/lib/python/ZODB - Transaction.py:1.28

[email protected] [email protected]
Thu, 29 Mar 2001 12:43:20 -0500 (EST)


Update of /cvs-repository/Zope2/lib/python/ZODB
In directory korak:/tmp/cvs-serv16392

Modified Files:
	Transaction.py 
Log Message:
Nit: move global decl before first use of hosed
(Previous code generates warning with Py 2.1)



--- Updated File Transaction.py in package Zope2/lib/python/ZODB --
--- Transaction.py	2001/02/26 20:33:50	1.27
+++ Transaction.py	2001/03/29 17:43:19	1.28
@@ -209,6 +209,8 @@
     def commit(self, subtransaction=None):
         'Finalize the transaction'
 
+        global hosed
+        
         objects=self._objects
         jars={}
         jarsv = None
@@ -338,7 +340,6 @@
                     # Bug if it does, we need to yell FIRE!
                     # Someone finished, so don't allow any more
                     # work without at least a restart!
-                    global hosed
                     hosed=1
                     LOG('ZODB', PANIC,
                         "A storage error occurred in the last phase of a "