Author: Philip Jenvey <pjen...@underboss.org>
Branch: py3k-stdlib-2.7.6-merge
Changeset: r69912:fa6ec0ca81f5
Date: 2014-03-12 15:25 -0700
http://bitbucket.org/pypy/pypy/changeset/fa6ec0ca81f5/

Log:    2to3

diff --git a/pypy/module/_codecs/test/test_codecs.py 
b/pypy/module/_codecs/test/test_codecs.py
--- a/pypy/module/_codecs/test/test_codecs.py
+++ b/pypy/module/_codecs/test/test_codecs.py
@@ -650,7 +650,7 @@
             if not isinstance(exc, UnicodeEncodeError) \
                and not isinstance(exc, UnicodeDecodeError):
                 raise TypeError("don't know how to handle %r" % exc)
-            l = [u"<%d>" % ord(exc.object[pos]) for pos in xrange(exc.start, 
exc.end)]
+            l = [u"<%d>" % exc.object[pos] for pos in range(exc.start, 
exc.end)]
             return (u"[%s]" % u"".join(l), exc.end)
         codecs.register_error("test.handler1", handler1)
         assert b"\\u3042\u3xxx".decode("unicode-escape", "test.handler1") == \
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to