mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 10:44:36 +08:00
Enable importing winreg in importlib._boostrap_external
This commit is contained in:
1 parent
65ed30b2ab
commit
a79dfcd027
1 file changed
+1
-2
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user