[Zodb-checkins] SVN: ZODB/trunk/src/ZODB/DB.py Moar don't use repr(tid) to get a serial.

Tres Seaver cvs-admin at zope.org
Sat Dec 15 02:02:54 UTC 2012


Log message for revision 128677:
  Moar don't use repr(tid) to get a serial.
  
  repr() must return text, and we need bytes.

Changed:
  U   ZODB/trunk/src/ZODB/DB.py

-=-
Modified: ZODB/trunk/src/ZODB/DB.py
===================================================================
--- ZODB/trunk/src/ZODB/DB.py	2012-12-15 01:42:59 UTC (rev 128676)
+++ ZODB/trunk/src/ZODB/DB.py	2012-12-15 02:02:54 UTC (rev 128677)
@@ -310,12 +310,12 @@
             at = toTimeStamp(at)
         else:
             at = TimeStamp(at)
-        before = repr(at.laterThan(at))
+        before = at.laterThan(at).raw()
     elif before is not None:
         if isinstance(before, datetime.datetime):
-            before = repr(toTimeStamp(before))
+            before = toTimeStamp(before).raw()
         else:
-            before = repr(TimeStamp(before))
+            before = TimeStamp(before).raw()
     return before
 
 



More information about the Zodb-checkins mailing list