Commits

Antonio Cuni committed f8df108

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

  • Participants
  • Parent commits cc7ea41
  • Branches py3k

Comments (0)

Files changed (1)

File pypy/module/__builtin__/compiling.py

         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