summaryrefslogtreecommitdiffstats
path: root/Lib/importlib
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2012-05-04 19:46:04 (GMT)
committerBrett Cannon <brett@python.org>2012-05-04 19:46:04 (GMT)
commitf19c19106704f01b75b8e3e678f27a9b543aad74 (patch)
treeea265e748fcdb6e7b8c385a573f4fbb2b0f1ddd7 /Lib/importlib
parent2657df47449dd5d324985a5eb43b937217e0d7e0 (diff)
downloadcpython-f19c19106704f01b75b8e3e678f27a9b543aad74.zip
cpython-f19c19106704f01b75b8e3e678f27a9b543aad74.tar.gz
cpython-f19c19106704f01b75b8e3e678f27a9b543aad74.tar.bz2
Jython-friendly tweak.
Diffstat (limited to 'Lib/importlib')
-rw-r--r--Lib/importlib/_bootstrap.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/importlib/_bootstrap.py b/Lib/importlib/_bootstrap.py
index 1b487ef..4eab318 100644
--- a/Lib/importlib/_bootstrap.py
+++ b/Lib/importlib/_bootstrap.py
@@ -156,7 +156,7 @@ def new_module(name):
The module is not entered into sys.modules.
"""
- return type(sys)(name)
+ return type(_io)(name)
# Finder/loader utility code ##################################################