From: Greg Ward Date: Thu, 29 Jun 2000 22:59:10 +0000 (+0000) Subject: Changed to use _winreg module instead of winreg. X-Git-Tag: v2.0b1~1271 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cd079c4c28e614a6057fa1351d3ac82160cae330;p=thirdparty%2FPython%2Fcpython.git Changed to use _winreg module instead of winreg. --- diff --git a/Lib/distutils/msvccompiler.py b/Lib/distutils/msvccompiler.py index db8bd35acab7..6acd4efd0d5a 100644 --- a/Lib/distutils/msvccompiler.py +++ b/Lib/distutils/msvccompiler.py @@ -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: