[pypy-commit] pypy py3.5: Avoid importing the full locale module during _io initialization.
amauryfa
pypy.commits at gmail.com
Mon Apr 17 15:16:51 EDT 2017
Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: py3.5
Changeset: r91066:db0c73821d75
Date: 2017-04-17 11:35 +0200
http://bitbucket.org/pypy/pypy/changeset/db0c73821d75/
Log: Avoid importing the full locale module during _io initialization.
CPython change fbbf8b160e8d
diff --git a/pypy/module/_io/interp_textio.py b/pypy/module/_io/interp_textio.py
--- a/pypy/module/_io/interp_textio.py
+++ b/pypy/module/_io/interp_textio.py
@@ -290,7 +290,7 @@
try:
w_locale = space.call_method(space.builtin, '__import__',
- space.newtext('locale'))
+ space.newtext('_bootlocale'))
w_encoding = space.call_method(w_locale, 'getpreferredencoding',
space.w_False)
except OperationError as e:
More information about the pypy-commit
mailing list