[pypy-commit] pypy py3k: bah

antocuni noreply at buildbot.pypy.org
Sat Aug 4 15:51:37 CEST 2012


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: py3k
Changeset: r56571:8507afb6c0ba
Date: 2012-08-04 15:50 +0200
http://bitbucket.org/pypy/pypy/changeset/8507afb6c0ba/

Log:	bah

diff --git a/pypy/interpreter/error.py b/pypy/interpreter/error.py
--- a/pypy/interpreter/error.py
+++ b/pypy/interpreter/error.py
@@ -348,7 +348,7 @@
                     value = getattr(self, attr)
                     lst[i+i] = string
                     if fmt == 'd':
-                        lst[i+i+1] = str(value).encode('ascii')
+                        lst[i+i+1] = str(value).decode('ascii')
                     else:
                         lst[i+i+1] = unicode(value)
                 lst[-1] = self.xstrings[-1]


More information about the pypy-commit mailing list