Author: Antonio Cuni <[email protected]>
Branch: py3k
Changeset: r58399:f8df108f0a8a
Date: 2012-10-24 19:02 +0200
http://bitbucket.org/pypy/pypy/changeset/f8df108f0a8a/

Log:    we must ignore the encoding cookie even if we are compiling bytes

diff --git a/pypy/module/__builtin__/compiling.py 
b/pypy/module/__builtin__/compiling.py
--- a/pypy/module/__builtin__/compiling.py
+++ b/pypy/module/__builtin__/compiling.py
@@ -40,6 +40,7 @@
         ast_node.sync_app_attrs(space)
     elif space.isinstance_w(w_source, space.w_bytes):
         source_str = space.bytes0_w(w_source)
+        flags |= consts.PyCF_IGNORE_COOKIE
     else:
         source_str = space.str0_w(w_source)
         flags |= consts.PyCF_IGNORE_COOKIE
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to