From 77211a7ac09e44ebf7e3b1281de159d502242a5f Mon Sep 17 00:00:00 2001 From: Yukari Tamura Date: Wed, 12 May 2021 17:15:36 +0900 Subject: [PATCH] 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. --- Other_Tools/DRM_Key_Scripts/Kindle_for_Mac_and_PC/kindlekey.pyw | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Other_Tools/DRM_Key_Scripts/Kindle_for_Mac_and_PC/kindlekey.pyw b/Other_Tools/DRM_Key_Scripts/Kindle_for_Mac_and_PC/kindlekey.pyw index 4837627a..e20b7c95 100644 --- a/Other_Tools/DRM_Key_Scripts/Kindle_for_Mac_and_PC/kindlekey.pyw +++ b/Other_Tools/DRM_Key_Scripts/Kindle_for_Mac_and_PC/kindlekey.pyw @@ -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