[Checkins] SVN: zodbupdate/trunk/src/zodbupdate/serialize.py Fix format/comment.
Sylvain Viollon
sylvain at infrae.com
Tue Jun 8 11:15:22 EDT 2010
Log message for revision 113283:
Fix format/comment.
Changed:
U zodbupdate/trunk/src/zodbupdate/serialize.py
-=-
Modified: zodbupdate/trunk/src/zodbupdate/serialize.py
===================================================================
--- zodbupdate/trunk/src/zodbupdate/serialize.py 2010-06-08 15:13:19 UTC (rev 113282)
+++ zodbupdate/trunk/src/zodbupdate/serialize.py 2010-06-08 15:15:22 UTC (rev 113283)
@@ -27,8 +27,8 @@
class ZODBBroken(Broken):
"""Extend ZODB Broken to work with broken objects that doesn't
- have any __Broken_newargs__ sets. This seems to happens with Zope2
- Persistence objects.
+ have any __Broken_newargs__ sets (which happens if their __new__
+ method is not called).
"""
def __reduce__(self):
@@ -37,9 +37,9 @@
return (rebuild,
((self.__class__.__module__, self.__class__.__name__)
+ getattr(self, '__Broken_newargs__', ())),
- self.__Broken_state__,
- )
+ self.__Broken_state__)
+
class ZODBReference:
"""Class to remenber reference we don't want to touch.
"""
More information about the checkins
mailing list