[pypy-commit] pypy py3k: always ensure _winreg for importlib
pjenvey
pypy.commits at gmail.com
Mon May 23 20:24:04 EDT 2016
Author: Philip Jenvey <pjenvey at underboss.org>
Branch: py3k
Changeset: r84648:883edd23f9da
Date: 2016-05-23 17:23 -0700
http://bitbucket.org/pypy/pypy/changeset/883edd23f9da/
Log: always ensure _winreg for importlib
diff --git a/pypy/config/pypyoption.py b/pypy/config/pypyoption.py
--- a/pypy/config/pypyoption.py
+++ b/pypy/config/pypyoption.py
@@ -18,6 +18,8 @@
"exceptions", "_io", "sys", "builtins", "posix", "_warnings",
"itertools", "_frozen_importlib",
])
+if sys.platform == "win32":
+ essential_modules.add("_winreg")
default_modules = essential_modules.copy()
default_modules.update([
@@ -60,7 +62,6 @@
# XXX this should move somewhere else, maybe to platform ("is this posixish"
# check or something)
if sys.platform == "win32":
- working_modules.add("_winreg")
# unix only modules
for name in ["crypt", "fcntl", "pwd", "termios", "_minimal_curses",
"_posixsubprocess"]:
diff --git a/pypy/interpreter/baseobjspace.py b/pypy/interpreter/baseobjspace.py
--- a/pypy/interpreter/baseobjspace.py
+++ b/pypy/interpreter/baseobjspace.py
@@ -593,9 +593,6 @@
# lives in pypy/module/exceptions, we rename it below for
# sys.builtin_module_names
bootstrap_modules = set(('sys', 'imp', 'builtins', 'exceptions'))
- if sys.platform.startswith("win"):
- self.setbuiltinmodule('_winreg')
- bootstrap_modules.add('_winreg')
installed_builtin_modules = list(bootstrap_modules)
exception_types_w = self.export_builtin_exceptions()
More information about the pypy-commit
mailing list