Commits

Amaury Forgeot d'Arc  committed 05a2c78

Fix a systematic crash in translated code

  • Participants
  • Parent commits f3c8ea0
  • Branches compile-from-stream

Comments (0)

Files changed (1)

File pypy/interpreter/pyparser/pyparse.py

                 break
 
         enc = compile_info.encoding
-        if enc in ('utf-8', 'iso-8859-1'):
+        if enc is None:
+            pass
+        elif enc in ('utf-8', 'iso-8859-1'):
             enc = None # No need to recode
         stream.set_encoding(enc)