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

Tres Seaver <[email protected]> Fri, 14 Dec 2012 21:02:54 -0500 (EST)
Newsgroups gmane.comp.python.zope.zodb.cvs
Message-ID <20121215020254.F31326B0003__12625.3508883112$1355536998$gmane$org@cvs.zope.org>
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