Author: Amaury Forgeot d'Arc <[email protected]>
Branch: py3k
Changeset: r51468:a218f270838c
Date: 2012-01-17 22:18 +0100
http://bitbucket.org/pypy/pypy/changeset/a218f270838c/

Log:    Fix octal notation in binascii.py

diff --git a/lib_pypy/binascii.py b/lib_pypy/binascii.py
--- a/lib_pypy/binascii.py
+++ b/lib_pypy/binascii.py
@@ -68,7 +68,7 @@
          chr(0x20 + (((B << 2) | ((C >> 6) & 0x3)) & 0x3F)),
          chr(0x20 + (( C                         ) & 0x3F))])
               for A, B, C in triples_gen(s)]
-    return chr(ord(' ') + (length & 077)) + ''.join(result) + '\n'
+    return chr(ord(' ') + (length & 0o77)) + ''.join(result) + '\n'
 
 
 table_a2b_base64 = {
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to