Commit 154d391d authored by Jeremy Hylton's avatar Jeremy Hylton

Nit: move global decl before first use of hosed

(Previous code generates warning with Py 2.1)
parent 45dc70ed
...@@ -84,8 +84,8 @@ ...@@ -84,8 +84,8 @@
############################################################################## ##############################################################################
"""Transaction management """Transaction management
$Id: Transaction.py,v 1.27 2001/02/26 20:33:50 brian Exp $""" $Id: Transaction.py,v 1.28 2001/03/29 17:43:19 jeremy Exp $"""
__version__='$Revision: 1.27 $'[11:-2] __version__='$Revision: 1.28 $'[11:-2]
import time, sys, struct, POSException import time, sys, struct, POSException
from struct import pack from struct import pack
...@@ -209,6 +209,8 @@ class Transaction: ...@@ -209,6 +209,8 @@ class Transaction:
def commit(self, subtransaction=None): def commit(self, subtransaction=None):
'Finalize the transaction' 'Finalize the transaction'
global hosed
objects=self._objects objects=self._objects
jars={} jars={}
jarsv = None jarsv = None
...@@ -338,7 +340,6 @@ class Transaction: ...@@ -338,7 +340,6 @@ class Transaction:
# Bug if it does, we need to yell FIRE! # Bug if it does, we need to yell FIRE!
# Someone finished, so don't allow any more # Someone finished, so don't allow any more
# work without at least a restart! # work without at least a restart!
global hosed
hosed=1 hosed=1
LOG('ZODB', PANIC, LOG('ZODB', PANIC,
"A storage error occurred in the last phase of a " "A storage error occurred in the last phase of a "
......
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