diff --git a/Lib/importlib/_bootstrap_external.py b/Lib/importlib/_bootstrap_external.py index 18eb43f2a..d60cb7691 100644 --- a/Lib/importlib/_bootstrap_external.py +++ b/Lib/importlib/_bootstrap_external.py @@ -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)