summaryrefslogtreecommitdiffstats
path: root/Other_Tools
diff options
context:
space:
mode:
authorJeremy Whiting <[email protected]>2020-10-21 10:43:54 -0600
committerJeremy Whiting <[email protected]>2020-10-21 10:56:50 -0600
commit0add3646d91cdcb9420cfe6cdbcaae467e429a1f (patch)
tree64e536e7649846c1f6ed67deb5ad2422b27ea209 /Other_Tools
parentc4c20eb07ef0197f5f873400ab5f0258d96cbbdc (diff)
_winreg in python3 has been changed to winreg. Update imports.
Diffstat (limited to 'Other_Tools')
-rw-r--r--Other_Tools/DRM_Key_Scripts/Adobe_Digital_Editions/adobekey.pyw2
-rw-r--r--Other_Tools/DRM_Key_Scripts/Barnes_and_Noble_ePubs/ignoblekey.pyw2
-rw-r--r--Other_Tools/DRM_Key_Scripts/Kindle_for_Mac_and_PC/kindlekey.pyw2
-rw-r--r--Other_Tools/Kobo/obok.py2
-rw-r--r--Other_Tools/Tetrachroma_FileOpen_ineptpdf/ineptpdf_8.4.51.pyw2
5 files changed, 5 insertions, 5 deletions
diff --git a/Other_Tools/DRM_Key_Scripts/Adobe_Digital_Editions/adobekey.pyw b/Other_Tools/DRM_Key_Scripts/Adobe_Digital_Editions/adobekey.pyw
index 7fbd516..bc33567 100644
--- a/Other_Tools/DRM_Key_Scripts/Adobe_Digital_Editions/adobekey.pyw
+++ b/Other_Tools/DRM_Key_Scripts/Adobe_Digital_Editions/adobekey.pyw
@@ -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
diff --git a/Other_Tools/DRM_Key_Scripts/Barnes_and_Noble_ePubs/ignoblekey.pyw b/Other_Tools/DRM_Key_Scripts/Barnes_and_Noble_ePubs/ignoblekey.pyw
index 98ae209..7365c94 100644
--- a/Other_Tools/DRM_Key_Scripts/Barnes_and_Noble_ePubs/ignoblekey.pyw
+++ b/Other_Tools/DRM_Key_Scripts/Barnes_and_Noble_ePubs/ignoblekey.pyw
@@ -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
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 e20b7c9..4837627 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 as winreg
+ import winreg
MAX_PATH = 255
kernel32 = windll.kernel32
advapi32 = windll.advapi32
diff --git a/Other_Tools/Kobo/obok.py b/Other_Tools/Kobo/obok.py
index fc0cabf..98608c5 100644
--- a/Other_Tools/Kobo/obok.py
+++ b/Other_Tools/Kobo/obok.py
@@ -346,7 +346,7 @@ class KoboLibrary(object):
if (self.kobodir == u""):
# step 4. we haven't found a device with serials, so try desktop apps
if sys.platform.startswith('win'):
- import _winreg as winreg
+ import winreg
if sys.getwindowsversion().major > 5:
if 'LOCALAPPDATA' in os.environ.keys():
# Python 2.x does not return unicode env. Use Python 3.x
diff --git a/Other_Tools/Tetrachroma_FileOpen_ineptpdf/ineptpdf_8.4.51.pyw b/Other_Tools/Tetrachroma_FileOpen_ineptpdf/ineptpdf_8.4.51.pyw
index 6277c50..7a0dcd8 100644
--- a/Other_Tools/Tetrachroma_FileOpen_ineptpdf/ineptpdf_8.4.51.pyw
+++ b/Other_Tools/Tetrachroma_FileOpen_ineptpdf/ineptpdf_8.4.51.pyw
@@ -2290,7 +2290,7 @@ class PDFDocument(object):
import win32api
import win32security
import win32file
- import _winreg as winreg
+ import winreg
except:
raise ADEPTError('PyWin Extension (Win32API module) needed.\n'+\
'Download from http://sourceforge.net/projects/pywin32/files/ ')