Skip to content

Commit 959b0b9

Browse files
committed
Don't try to import winreg in importlib._bootstrap_external
1 parent fa7524d commit 959b0b9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Lib/importlib/_bootstrap_external.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1605,7 +1605,8 @@ def _setup(_bootstrap_module):
16051605
setattr(self_module, '_weakref', weakref_module)
16061606

16071607
# Directly load the winreg module (needed during bootstrap).
1608-
if builtin_os == 'nt':
1608+
# XXX RustPython TODO: winreg module
1609+
if builtin_os == 'nt' and False:
16091610
winreg_module = _bootstrap._builtin_from_name('winreg')
16101611
setattr(self_module, '_winreg', winreg_module)
16111612

0 commit comments

Comments
 (0)