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

Jeremy Hylton jeremy at zope.com
Fri Jun 13 18:53:08 EDT 2003


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

Modified Files:
	Connection.py 
Log Message:
Use oid_repr().


=== ZODB3/ZODB/Connection.py 1.97 => 1.98 ===
--- ZODB3/ZODB/Connection.py:1.97	Fri Jun 13 13:03:39 2003
+++ ZODB3/ZODB/Connection.py	Fri Jun 13 17:53:08 2003
@@ -25,6 +25,7 @@
 from coptimizations import new_persistent_id
 from ConflictResolution import ResolvedSerial
 from Transaction import Transaction, get_transaction
+from ZODB.utils import oid_repr
 
 from cPickle import Unpickler, Pickler
 from cStringIO import StringIO
@@ -547,7 +548,7 @@
 
         if self._storage is None:
             msg = ("Shouldn't load state for %s "
-                   "when the connection is closed" % `oid`)
+                   "when the connection is closed" % oid_repr(oid))
             LOG('ZODB', ERROR, msg)
             raise RuntimeError(msg)
 
@@ -569,7 +570,8 @@
         except ConflictError:
             raise
         except:
-            LOG('ZODB',ERROR, "Couldn't load state for %s" % `oid`,
+            LOG('ZODB', ERROR,
+                "Couldn't load state for %s" % oid_repr(oid),
                 error=sys.exc_info())
             raise
 




More information about the Zodb-checkins mailing list