summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 1b487efd53..4eab31848d 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 ##################################################