[pypy-svn] r57243 - pypy/dist/pypy/lib/_ctypes

arigo at codespeak.net arigo at codespeak.net
Thu Aug 14 13:15:47 CEST 2008


Author: arigo
Date: Thu Aug 14 13:15:47 2008
New Revision: 57243

Modified:
   pypy/dist/pypy/lib/_ctypes/primitive.py
Log:
Use proper quoting in the repr of SimpleCData.


Modified: pypy/dist/pypy/lib/_ctypes/primitive.py
==============================================================================
--- pypy/dist/pypy/lib/_ctypes/primitive.py	(original)
+++ pypy/dist/pypy/lib/_ctypes/primitive.py	Thu Aug 14 13:15:47 2008
@@ -250,7 +250,7 @@
         return self.value
 
     def __repr__(self):
-        return "%s(%s)" % (type(self).__name__, self.value)
+        return "%s(%r)" % (type(self).__name__, self.value)
 
     def __nonzero__(self):
         return self._buffer[0] not in (0, '\x00')



More information about the Pypy-commit mailing list