Enable importing winreg in importlib._boostrap_external

This commit is contained in:
Noah committed 2020-03-03 11:22:48 -06:00
1 parent 65ed30b2ab
commit a79dfcd027
1 file changed
+1 -2
+1 -2
View File
@@ -1605,8 +1605,7 @@ def _setup(_bootstrap_module):
setattr(self_module, '_weakref', weakref_module)
# Directly load the winreg module (needed during bootstrap).
# XXX RustPython TODO: winreg module
if builtin_os == 'nt' and False:
if builtin_os == 'nt':
winreg_module = _bootstrap._builtin_from_name('winreg')
setattr(self_module, '_winreg', winreg_module)