[Zodb-checkins] CVS: Zope3/lib/python/ZODB - BaseStorage.py:1.15.10.5

Jeremy Hylton jeremy@zope.com
Mon, 11 Mar 2002 19:04:04 -0500


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

Modified Files:
      Tag: Zope-3x-branch
	BaseStorage.py 
Log Message:
Reformat according to guidelines from the Committee for the
Preservation of Whitspace.


=== Zope3/lib/python/ZODB/BaseStorage.py 1.15.10.4 => 1.15.10.5 ===
         self._lock_acquire()
         try:
-            if self._transaction is transaction: return
+            if self._transaction is transaction:
+                return
             self._lock_release()
             self._commit_lock_acquire()
             self._lock_acquire()
@@ -150,7 +151,8 @@
 
             self._begin(self._serial, user, desc, ext)
             
-        finally: self._lock_release()
+        finally:
+            self._lock_release()
 
     def _begin(self, tid, u, d, e):
         """Subclasses should redefine this to supply transaction start actions.
@@ -173,16 +175,18 @@
     def tpc_finish(self, transaction, f=None):
         self._lock_acquire()
         try:
-            if transaction is not self._transaction: return
+            if transaction is not self._transaction:
+                return
             try:
-                if f is not None: f()
+                if f is not None:
+                    f()
 
-                u,d,e=self._ude
+                u, d, e = self._ude
                 self._finish(self._serial, u, d, e)
                 self._clear_temp()
             finally:
-                self._ude=None
-                self._transaction=None
+                self._ude = None
+                self._transaction = None
                 self._commit_lock_release()
         finally:
             self._lock_release()