mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
Don't try to import winreg in importlib._bootstrap_external
This commit is contained in:
1 parent
fa7524d0b9
commit
959b0b9e62
1 file changed
+2
-1
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user