Skip to content

Commit

Permalink
Python 3 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ableeker committed Sep 19, 2021
1 parent bda647b commit ceeb2e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DeDRM_plugin/topazextract.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ def processBook(self, pidlst):
# use 8 digit pids here
pid = pid[0:8]
if isinstance(pid, str):
pid = pid.encode('latin-1')
pid = pid.encode('utf-8')
print("Trying: {0}".format(pid))
bookKeys = []
data = keydata
Expand Down

0 comments on commit ceeb2e3

Please sign in to comment.