Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f19c191

Browse files
committed
Jython-friendly tweak.
1 parent 2657df4 commit f19c191

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lib/importlib/_bootstrap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def new_module(name):
156156
The module is not entered into sys.modules.
157157
158158
"""
159-
return type(sys)(name)
159+
return type(_io)(name)
160160

161161

162162
# Finder/loader utility code ##################################################

0 commit comments

Comments
 (0)