summaryrefslogtreecommitdiffstats
path: root/Tools/msi/msilib.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-05-25 07:45:51 (GMT)
committerGeorg Brandl <georg@python.org>2008-05-25 07:45:51 (GMT)
commit38feaf0fef244879411f094a7e68f542a6771dea (patch)
tree632d870bad650ece1724111091a2b307759ea997 /Tools/msi/msilib.py
parent2cb57a40b28f4680a1433d4640d99f4b2efe7165 (diff)
downloadcpython-38feaf0fef244879411f094a7e68f542a6771dea.zip
cpython-38feaf0fef244879411f094a7e68f542a6771dea.tar.gz
cpython-38feaf0fef244879411f094a7e68f542a6771dea.tar.bz2
#2879: rename _winreg to winreg.
Diffstat (limited to 'Tools/msi/msilib.py')
-rw-r--r--Tools/msi/msilib.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Tools/msi/msilib.py b/Tools/msi/msilib.py
index e07ef2b..8497400 100644
--- a/Tools/msi/msilib.py
+++ b/Tools/msi/msilib.py
@@ -5,7 +5,7 @@ import win32com.client.gencache
import win32com.client
import pythoncom, pywintypes
from win32com.client import constants
-import re, string, os, sets, glob, subprocess, sys, _winreg, struct
+import re, string, os, sets, glob, subprocess, sys, winreg, struct
# Partially taken from Wine
datasizemask= 0x00ff
@@ -376,9 +376,9 @@ class CAB:
(r"Software\Microsoft\Win32SDK\Directories", "Install Dir"),
]:
try:
- key = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, k)
- dir = _winreg.QueryValueEx(key, v)[0]
- _winreg.CloseKey(key)
+ key = winreg.OpenKey(winreg.HKEY_LOCAL_MACHINE, k)
+ dir = winreg.QueryValueEx(key, v)[0]
+ winreg.CloseKey(key)
except (WindowsError, IndexError):
continue
cabarc = os.path.join(dir, r"Bin", "cabarc.exe")