[pypy-commit] pypy py3k: unicode.lower() is not rpython it seems.

amauryfa noreply at buildbot.pypy.org
Tue Oct 18 00:38:04 CEST 2011


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: py3k
Changeset: r48172:8b97595e7f42
Date: 2011-10-18 00:06 +0200
http://bitbucket.org/pypy/pypy/changeset/8b97595e7f42/

Log:	unicode.lower() is not rpython it seems.

diff --git a/pypy/objspace/std/bytearraytype.py b/pypy/objspace/std/bytearraytype.py
--- a/pypy/objspace/std/bytearraytype.py
+++ b/pypy/objspace/std/bytearraytype.py
@@ -78,6 +78,8 @@
     val = ord(d)
     if 47 < val < 58:
         return val - 48
+    if 64 < val < 71:
+        return val - 55
     if 96 < val < 103:
         return val - 87
     return -1
@@ -88,7 +90,6 @@
     "accepted.\nExample: bytearray.fromhex('B9 01EF') -> "
     "bytearray(b'\\xb9\\x01\\xef')."
     hexstring = space.unicode_w(w_hexstring)
-    hexstring = hexstring.lower()
     data = []
     length = len(hexstring)
     i = -2


More information about the pypy-commit mailing list