mirror of
https://github.com/python/cpython.git
synced 2025-07-23 03:05:38 +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
|
@ -24,17 +24,17 @@ from distutils.ccompiler import (CCompiler, gen_preprocess_options,
|
|||
from distutils import log
|
||||
from distutils.util import get_platform
|
||||
|
||||
import _winreg
|
||||
import 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
|
||||
|
||||
HKEYS = (_winreg.HKEY_USERS,
|
||||
_winreg.HKEY_CURRENT_USER,
|
||||
_winreg.HKEY_LOCAL_MACHINE,
|
||||
_winreg.HKEY_CLASSES_ROOT)
|
||||
HKEYS = (winreg.HKEY_USERS,
|
||||
winreg.HKEY_CURRENT_USER,
|
||||
winreg.HKEY_LOCAL_MACHINE,
|
||||
winreg.HKEY_CLASSES_ROOT)
|
||||
|
||||
VS_BASE = r"Software\Microsoft\VisualStudio\%0.1f"
|
||||
WINSDK_BASE = r"Software\Microsoft\Microsoft SDKs\Windows"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue