[pypy-svn] r17257 - pypy/dist/pypy/module/_codecs

ale at codespeak.net ale at codespeak.net
Tue Sep 6 09:03:59 CEST 2005


Author: ale
Date: Tue Sep  6 09:03:58 2005
New Revision: 17257

Modified:
   pypy/dist/pypy/module/_codecs/app_codecs.py
Log:
test_codeccallbacks passes again

Modified: pypy/dist/pypy/module/_codecs/app_codecs.py
==============================================================================
--- pypy/dist/pypy/module/_codecs/app_codecs.py	(original)
+++ pypy/dist/pypy/module/_codecs/app_codecs.py	Tue Sep  6 09:03:58 2005
@@ -476,7 +476,7 @@
             res += '&#'
             res += str(ord(ch))
             res += ';'
-        return ''.join(res), exc.end
+        return u''.join(res), exc.end
     else:
         raise TypeError("don't know how to handle %.400s in error callback"%type(exc))
     
@@ -495,7 +495,7 @@
             else:
                 p += 'x'
                 p += "%.2x" % ord(c)
-        return ''.join(p), exc.end
+        return u''.join(p), exc.end
     else:
         raise TypeError("don't know how to handle %.400s in error callback"%type(exc))
 



More information about the Pypy-commit mailing list