[Checkins] SVN: persistent/trunk/ Aim for consistent repr of	timestamp between C and Python impl.
    Tres Seaver 
    cvs-admin at zope.org
       
    Fri Dec 14 00:21:21 UTC 2012
    
    
  
Log message for revision 128640:
  Aim for consistent repr of timestamp between C and Python impl.
Changed:
  _U  persistent/trunk/
  U   persistent/trunk/persistent/tests/test_timestamp.py
  U   persistent/trunk/persistent/timestamp.py
-=-
Modified: persistent/trunk/persistent/tests/test_timestamp.py
===================================================================
--- persistent/trunk/persistent/tests/test_timestamp.py	2012-12-14 00:21:20 UTC (rev 128639)
+++ persistent/trunk/persistent/tests/test_timestamp.py	2012-12-14 00:21:21 UTC (rev 128640)
@@ -148,10 +148,9 @@
 
     def test_repr(self):
         from persistent.timestamp import _makeOctets
-        from persistent._compat import _native
         SERIAL = _makeOctets('\x01' * 8)
         ts = self._makeOne(SERIAL)
-        self.assertEqual(repr(ts), _native(SERIAL))
+        self.assertEqual(repr(ts), repr(SERIAL))
 
 class TimeStampTests(pyTimeStampTests):
 
Modified: persistent/trunk/persistent/timestamp.py
===================================================================
--- persistent/trunk/persistent/timestamp.py	2012-12-14 00:21:20 UTC (rev 128639)
+++ persistent/trunk/persistent/timestamp.py	2012-12-14 00:21:21 UTC (rev 128640)
@@ -90,7 +90,7 @@
         return self._raw
 
     def __repr__(self):
-        return _native(self._raw)
+        return repr(self._raw)
 
     def year(self):
         return self._elements[0]
    
    
More information about the checkins
mailing list