Don't try to import winreg in importlib._bootstrap_external

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