mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
#2879: rename _winreg to winreg.
This commit is contained in:
parent
2cb57a40b2
commit
38feaf0fef
20 changed files with 72 additions and 71 deletions
|
@ -20,15 +20,15 @@ from distutils import log
|
|||
|
||||
_can_read_reg = False
|
||||
try:
|
||||
import _winreg
|
||||
import winreg
|
||||
|
||||
_can_read_reg = True
|
||||
hkey_mod = _winreg
|
||||
hkey_mod = winreg
|
||||
|
||||
RegOpenKeyEx = _winreg.OpenKeyEx
|
||||
RegEnumKey = _winreg.EnumKey
|
||||
RegEnumValue = _winreg.EnumValue
|
||||
RegError = _winreg.error
|
||||
RegOpenKeyEx = winreg.OpenKeyEx
|
||||
RegEnumKey = winreg.EnumKey
|
||||
RegEnumValue = winreg.EnumValue
|
||||
RegError = winreg.error
|
||||
|
||||
except ImportError:
|
||||
try:
|
||||
|
@ -44,7 +44,7 @@ except ImportError:
|
|||
except ImportError:
|
||||
log.info("Warning: Can't read registry to find the "
|
||||
"necessary compiler setting\n"
|
||||
"Make sure that Python modules _winreg, "
|
||||
"Make sure that Python modules winreg, "
|
||||
"win32api or win32con are installed.")
|
||||
pass
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue