[Zodb-checkins] SVN: ZODB/branches/matt-python-versions/src/ZODB/POSException.py New POSException format.
matt@zope.com
cvs-admin at zope.org
Thu Nov 20 16:34:24 EST 2008
Log message for revision 93196:
New POSException format.
Changed:
U ZODB/branches/matt-python-versions/src/ZODB/POSException.py
-=-
Modified: ZODB/branches/matt-python-versions/src/ZODB/POSException.py
===================================================================
--- ZODB/branches/matt-python-versions/src/ZODB/POSException.py 2008-11-20 21:21:17 UTC (rev 93195)
+++ ZODB/branches/matt-python-versions/src/ZODB/POSException.py 2008-11-20 21:34:24 UTC (rev 93196)
@@ -50,11 +50,12 @@
message = property(__get_message, __set_message, __del_message)
- if sys.version_info[:2] == (2, 5):
+ if sys.version_info[:2] >= (2, 5):
def __reduce__(self):
# Copy extra data from internal structures
state = self.__dict__.copy()
- state['message'] = self.message
+ if sys.version_info[:2] == (2, 5):
+ state['message'] = self.message
state['args'] = self.args
return (_recon, (self.__class__, state))
More information about the Zodb-checkins
mailing list