Author: Brian Kearns <[email protected]>
Branch:
Changeset: r62948:f160281ab661
Date: 2013-04-03 01:02 -0700
http://bitbucket.org/pypy/pypy/changeset/f160281ab661/
Log: make sure encodings is always preimported to match cpython
diff --git a/lib-python/2/site.py b/lib-python/2/site.py
--- a/lib-python/2/site.py
+++ b/lib-python/2/site.py
@@ -554,6 +554,8 @@
def import_builtin_stuff():
"""PyPy specific: pre-import a few built-in modules, because
some programs actually rely on them to be in sys.modules :-("""
+ # encodings is imported sometimes but not always by app_main
+ import encodings
import exceptions
if 'zipimport' in sys.builtin_module_names:
import zipimport
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit