[Zodb-checkins] SVN: ZODB/branches/matt-python-versions/src/ZODB/POSException.py Checkpoint, tiny error.
matt@zope.com
cvs-admin at zope.org
Wed Nov 19 11:07:16 EST 2008
Log message for revision 93140:
Checkpoint, tiny error.
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-19 15:57:06 UTC (rev 93139)
+++ ZODB/branches/matt-python-versions/src/ZODB/POSException.py 2008-11-19 16:07:16 UTC (rev 93140)
@@ -15,6 +15,8 @@
$Id$"""
+import sys
+
from ZODB.utils import oid_repr, readable_tid_repr
# BBB: We moved the two transactions to the transaction package
@@ -47,14 +49,14 @@
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
state['args'] = self.args
- return (_recon, (self.__class__, state))
+ return (_recon, (self.__class__, state))
class POSKeyError(POSError, KeyError):
"""Key not found in database."""
More information about the Zodb-checkins
mailing list