Changed to use _winreg module instead of winreg.

This commit is contained in:
Greg Ward 2000-06-29 22:59:10 +00:00
parent f34506a3d4
commit cd079c4c28
1 changed files with 6 additions and 6 deletions

View File

@ -20,14 +20,14 @@ from distutils.ccompiler import \
_can_read_reg = 0
try:
import winreg
import _winreg
_can_read_reg = 1
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: