Skip to content

Commit a79dfcd

Browse files
committed
Enable importing winreg in importlib._boostrap_external
1 parent 65ed30b commit a79dfcd

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Lib/importlib/_bootstrap_external.py

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

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

0 commit comments

Comments
 (0)