[Zodb-checkins] CVS: ZODB3/ZODB - Connection.py:1.73

Jeremy Hylton jeremy@zope.com
Sat, 7 Sep 2002 12:22:17 -0400


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

Modified Files:
	Connection.py 
Log Message:
Add a little whitespace.


=== ZODB3/ZODB/Connection.py 1.72 => 1.73 ===
--- ZODB3/ZODB/Connection.py:1.72	Wed Aug 14 18:07:09 2002
+++ ZODB3/ZODB/Connection.py	Sat Sep  7 12:22:16 2002
@@ -275,21 +275,18 @@
                 method_name, args, kw = self.__onCommitActions.pop(0)
                 apply(getattr(self, method_name), (transaction,) + args, kw)
             return
-        oid=object._p_oid
-        invalid=self._invalid
+        oid = object._p_oid
+        invalid = self._invalid
         if oid is None or object._p_jar is not self:
             # new object
             oid = self.new_oid()
-            object._p_jar=self
-            object._p_oid=oid
+            object._p_jar = self
+            object._p_oid = oid
             self._creating.append(oid)
 
         elif object._p_changed:
-            if (
-                (invalid(oid) and not hasattr(object, '_p_resolveConflict'))
-                or
-                invalid(None)
-                ):
+            if ((invalid(oid) and not hasattr(object, '_p_resolveConflict'))
+                or invalid(None)):
                 raise ConflictError(object=object)
             self._invalidating.append(oid)
 
@@ -297,7 +294,7 @@
             # Nothing to do
             return
 
-        stack=[object]
+        stack = [object]
 
         # Create a special persistent_id that passes T and the subobject
         # stack along:
@@ -610,8 +607,8 @@
     def tpc_begin(self, transaction, sub=None):
         if self._invalid(None): # Some nitwit invalidated everything!
             raise ConflictError("transaction already invalidated")
-        self._invalidating=[]
-        self._creating=[]
+        self._invalidating = []
+        self._creating = []
 
         if sub:
             # Sub-transaction!