diff options
author | Apprentice Harper <[email protected]> | 2021-04-11 16:43:16 +0100 |
---|---|---|
committer | Apprentice Harper <[email protected]> | 2021-04-11 16:43:16 +0100 |
commit | 73af5d355d17ca487d939272c248f2ea0e522396 (patch) | |
tree | 15c30e12330c33567518dff457c598404d8c0b01 /DeDRM_plugin/kfxdedrm.py | |
parent | 45a1a64db59911c133b48a1425eee2ad6e7a5f2b (diff) |
whitespace and some unicode/bytes
Minor changes.
Diffstat (limited to 'DeDRM_plugin/kfxdedrm.py')
-rw-r--r-- | DeDRM_plugin/kfxdedrm.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/DeDRM_plugin/kfxdedrm.py b/DeDRM_plugin/kfxdedrm.py index d6b0e1f..67b10f8 100644 --- a/DeDRM_plugin/kfxdedrm.py +++ b/DeDRM_plugin/kfxdedrm.py @@ -5,6 +5,7 @@ # 2.0 - Python 3 for calibre 5.0 # 2.1 - Some fixes for debugging +# 2.1.1 - Whitespace! import os @@ -67,7 +68,7 @@ class KFXZipBook: print("Decrypting KFX DRM voucher: {0}".format(info.filename)) for pid in [''] + totalpids: - # Belt and braces. PIDs should be unicode strings, but just in case... + # Belt and braces. PIDs should be unicode strings, but just in case... if isinstance(pid, bytes): pid = pid.decode('ascii') for dsn_len,secret_len in [(0,0), (16,0), (16,40), (32,40), (40,0), (40,40)]: @@ -82,8 +83,8 @@ class KFXZipBook: voucher.decryptvoucher() break except: - traceback.print_exc() - pass + traceback.print_exc() + pass else: raise Exception("Failed to decrypt KFX DRM voucher with any key") |