_winreg in python3 has been changed to winreg. Update imports.

This commit is contained in:
Jeremy Whiting
2020-10-21 10:43:54 -06:00
parent c4c20eb07e
commit 0add3646d9
9 changed files with 11 additions and 12 deletions

View File

@@ -129,7 +129,7 @@ if iswindows:
c_long, c_ulong
from ctypes.wintypes import LPVOID, DWORD, BOOL
import _winreg as winreg
import winreg
def _load_crypto_libcrypto():
from ctypes.util import find_library

View File

@@ -98,7 +98,7 @@ def getNookLogFiles():
logFiles = []
found = False
if iswindows:
import _winreg as winreg
import winreg
# some 64 bit machines do not have the proper registry key for some reason
# or the python interface to the 32 vs 64 bit registry is broken

View File

@@ -177,7 +177,7 @@ if iswindows:
create_unicode_buffer, create_string_buffer, CFUNCTYPE, addressof, \
string_at, Structure, c_void_p, cast
import _winreg as winreg
import winreg
MAX_PATH = 255
kernel32 = windll.kernel32
advapi32 = windll.advapi32