[pypy-svn] r75641 - pypy/branch/fast-forward/pypy/module/exceptions

benjamin at codespeak.net benjamin at codespeak.net
Mon Jun 28 18:28:14 CEST 2010


Author: benjamin
Date: Mon Jun 28 18:28:13 2010
New Revision: 75641

Modified:
   pypy/branch/fast-forward/pypy/module/exceptions/interp_exceptions.py
Log:
fix quoting again

Modified: pypy/branch/fast-forward/pypy/module/exceptions/interp_exceptions.py
==============================================================================
--- pypy/branch/fast-forward/pypy/module/exceptions/interp_exceptions.py	(original)
+++ pypy/branch/fast-forward/pypy/module/exceptions/interp_exceptions.py	Mon Jun 28 18:28:13 2010
@@ -633,10 +633,10 @@
     def descr_str(self, space):
         return space.appexec([self], """(self):
             if self.end == self.start + 1:
-                return "%r codec can't decode byte 0x%02x in position %d: %s"%(
+                return "'%s' codec can't decode byte 0x%02x in position %d: %s"%(
                     self.encoding,
                     ord(self.object[self.start]), self.start, self.reason)
-            return "%r codec can't decode bytes in position %d-%d: %s" % (
+            return "'%s' codec can't decode bytes in position %d-%d: %s" % (
                 self.encoding, self.start, self.end - 1, self.reason)
         """)
     descr_str.unwrap_spec = ['self', ObjSpace]



More information about the Pypy-commit mailing list