2
0
mirror of https://github.com/apprenticeharper/DeDRM_tools synced 2024-10-30 21:20:10 +00:00

revert winreg rename for kindlekey.pyw

As the script isn't python3 compatible yet, we still need to
import _winreg to make it run at least with python2.7.

To make it run with python3, we need more works around
print and raise syntax.
This commit is contained in:
Yukari Tamura 2021-05-12 17:15:36 +09:00
parent 73af5d355d
commit 77211a7ac0

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
import _winreg as winreg
MAX_PATH = 255
kernel32 = windll.kernel32
advapi32 = windll.advapi32