Author: Antonio Cuni <[email protected]>
Branch: py3k
Changeset: r56170:94d4d8dfb184
Date: 2012-07-18 17:10 +0200
http://bitbucket.org/pypy/pypy/changeset/94d4d8dfb184/

Log:    latin1 is not rpython, latin-1 is

diff --git a/pypy/objspace/std/longtype.py b/pypy/objspace/std/longtype.py
--- a/pypy/objspace/std/longtype.py
+++ b/pypy/objspace/std/longtype.py
@@ -33,7 +33,7 @@
                                     unicode_to_decimal_w(space, w_value))
         elif space.isinstance_w(w_value, space.w_bytearray):
             strvalue = space.bufferstr_w(w_value)
-            return string_to_w_long(space, w_longtype, 
strvalue.decode('latin1'))
+            return string_to_w_long(space, w_longtype, 
strvalue.decode('latin-11'))
         else:
             # otherwise, use the __int__() or the __trunc__ methods
             w_obj = w_value
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to