mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-06-28 21:46:13 +02:00
byte2int for PY3
This commit is contained in:
parent
8b7a37a196
commit
32f1d35c93
2 changed files with 8 additions and 1 deletions
|
@ -67,7 +67,7 @@ class Journal(object):
|
|||
util.prompt("ERROR: Your journal file seems to be corrupted. You do have a backup, don't you?")
|
||||
sys.exit(1)
|
||||
|
||||
padding_length = ord(plain[-1])
|
||||
padding_length = util.byte2int(plain[-1])
|
||||
if padding_length > AES.block_size and padding_length != 32:
|
||||
# 32 is the space character and is kept for backwards compatibility
|
||||
return None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue