Update of /cvs-repository/Packages/ZODB
In directory cvs.zope.org:/tmp/cvs-serv13892/ZODB

Modified Files:
      Tag: Zope-2_7-branch
        referencesf.py 
Log Message:
referencesf():  Use %r instead of %s format in the error message, else
the pickle shown is full of unprintable characters.


=== Packages/ZODB/referencesf.py 1.6.94.2 => 1.6.94.3 ===
--- Packages/ZODB/referencesf.py:1.6.94.2       Thu Oct  2 19:32:50 2003
+++ Packages/ZODB/referencesf.py        Thu Jun  2 17:24:43 2005
@@ -35,7 +35,7 @@
         u.persistent_load = []
         u.noload()
         if len(p) > f.tell():
-            raise ValueError, 'Error unpickling, %s' % p
+            raise ValueError, 'Error unpickling %r' % p
 
     # References may have class info, so we need to
     # check for wrapped references.

_______________________________________________
Zope-Checkins maillist  -  Zope-Checkins@zope.org
http://mail.zope.org/mailman/listinfo/zope-checkins

Reply via email to