From a74f37c79ee8b654699a9723e2d566025fa10be9 Mon Sep 17 00:00:00 2001 From: Aldo Bleeker Date: Sat, 7 Nov 2020 13:43:58 +0100 Subject: [PATCH] Minor Python 3 fix for Customize dialog --- DeDRM_plugin/erdr2pml.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DeDRM_plugin/erdr2pml.py b/DeDRM_plugin/erdr2pml.py index 6e1054e..84a4001 100755 --- a/DeDRM_plugin/erdr2pml.py +++ b/DeDRM_plugin/erdr2pml.py @@ -580,9 +580,9 @@ def cli_main(): elif len(args)==4: infile, outpath, name, cc = args - print(bin2ascii.b2a_hex(getuser_key(name, cc))) + print(binascii.b2a_hex(getuser_key(name, cc))) - return decryptBook(infile, outpath, make_pmlz, bin2ascii.b2a_hex(getuser_key(name, cc))) + return decryptBook(infile, outpath, make_pmlz, getuser_key(name, cc)) if __name__ == "__main__":