[Zope3-checkins] CVS: ZODB/src/ZODB - BaseStorage.py:1.49
DB.py:1.77 MappingStorage.py:1.14 broken.py:1.4
interfaces.py:1.4 serialize.py:1.14
Tim Peters
tim.one at comcast.net
Mon Apr 19 17:19:37 EDT 2004
Update of /cvs-repository/ZODB/src/ZODB
In directory cvs.zope.org:/tmp/cvs-serv9699/src/ZODB
Modified Files:
BaseStorage.py DB.py MappingStorage.py broken.py interfaces.py
serialize.py
Log Message:
Whitespace normalization.
=== ZODB/src/ZODB/BaseStorage.py 1.48 => 1.49 ===
--- ZODB/src/ZODB/BaseStorage.py:1.48 Sat Apr 17 18:19:30 2004
+++ ZODB/src/ZODB/BaseStorage.py Mon Apr 19 17:19:05 2004
@@ -77,7 +77,7 @@
The other lock appears to protect _oid and _transaction and
perhaps other things. It is always held when load() is called, so
presumably the load() implementation should also acquire the lock.
- """
+ """
_transaction=None # Transaction that is being committed
_tstatus=' ' # Transaction status, used for copying data
_is_read_only = False
@@ -400,7 +400,7 @@
self.tpc_begin(transaction, tid, transaction.status)
for r in transaction:
oid=r.oid
- if verbose:
+ if verbose:
print utils.oid_repr(oid), r.version, len(r.data)
if restoring:
self.restore(oid, r.tid, r.data, r.version,
=== ZODB/src/ZODB/DB.py 1.76 => 1.77 ===
--- ZODB/src/ZODB/DB.py:1.76 Sat Apr 17 19:04:52 2004
+++ ZODB/src/ZODB/DB.py Mon Apr 19 17:19:05 2004
@@ -427,7 +427,7 @@
used the default transaction manager.
- `synch`: boolean indicating whether Connection should
register for afterCompletion() calls.
-
+
"""
self._a()
try:
=== ZODB/src/ZODB/MappingStorage.py 1.13 => 1.14 ===
--- ZODB/src/ZODB/MappingStorage.py:1.13 Wed Mar 31 22:56:58 2004
+++ ZODB/src/ZODB/MappingStorage.py Mon Apr 19 17:19:05 2004
@@ -76,7 +76,7 @@
return s[:8]
finally:
self._lock_release()
-
+
def store(self, oid, serial, data, version, transaction):
if transaction is not self._transaction:
=== ZODB/src/ZODB/broken.py 1.3 => 1.4 ===
--- ZODB/src/ZODB/broken.py:1.3 Thu Mar 4 17:41:52 2004
+++ ZODB/src/ZODB/broken.py Mon Apr 19 17:19:05 2004
@@ -115,7 +115,7 @@
def __setstate__(self, state):
self.__dict__['__Broken_state__'] = state
-
+
def __repr__(self):
return "<broken %s.%s instance>" % (
self.__class__.__module__, self.__class__.__name__)
@@ -233,7 +233,7 @@
"""
class_ = find_global(modulename, globalname)
return class_.__new__(class_, *args)
-
+
class BrokenModified(TypeError):
"""Attempt to modify a broken object
"""
@@ -256,7 +256,7 @@
>>> persistentBroken(Atall) is PAtall
True
-
+
)
Persistent broken classes work a lot like broken classes::
@@ -315,7 +315,7 @@
persistent.Persistent.__setattr__(self, name, value)
else:
raise BrokenModified("Can't change broken objects")
-
+
def __repr__(self):
return "<persistent broken %s.%s instance %r>" % (
self.__class__.__module__, self.__class__.__name__,
=== ZODB/src/ZODB/interfaces.py 1.3 => 1.4 ===
--- ZODB/src/ZODB/interfaces.py:1.3 Tue Feb 24 08:51:03 2004
+++ ZODB/src/ZODB/interfaces.py Mon Apr 19 17:19:05 2004
@@ -88,7 +88,7 @@
flag set to false.
"""
-
+
def tpc_abort(transaction):
"""Abort a transaction.
=== ZODB/src/ZODB/serialize.py 1.13 => 1.14 ===
--- ZODB/src/ZODB/serialize.py:1.13 Fri Apr 9 07:11:32 2004
+++ ZODB/src/ZODB/serialize.py Mon Apr 19 17:19:05 2004
@@ -269,7 +269,7 @@
# It's possible that __getnewargs__ is degenerate and
# returns (), but we don't want to have to deghostify
# the object to find out.
- return oid
+ return oid
return oid, klass
@@ -527,7 +527,7 @@
# tuples, so that we wrap oids that are lists or tuples in
# tuples.
#
- # - oids may *not* be False. I'm not sure why.
+ # - oids may *not* be False. I'm not sure why.
out = []
for v in rootl:
More information about the Zope3-Checkins
mailing list