]> granicus.if.org Git - python/commitdiff
Jython-friendly tweak.
authorBrett Cannon <brett@python.org>
Fri, 4 May 2012 19:46:04 +0000 (15:46 -0400)
committerBrett Cannon <brett@python.org>
Fri, 4 May 2012 19:46:04 +0000 (15:46 -0400)
Lib/importlib/_bootstrap.py

index 1b487efd5333d41bc92a04fca6578e512b5e38c2..4eab31848d957032c2c5b5776cd713fe87cfdc0a 100644 (file)
@@ -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 ##################################################