Skip to content

Commit

Permalink
Update to Python 3.11 and update dependencies
Browse files Browse the repository at this point in the history
partly based on changes suggested in
CooperRS#14
  • Loading branch information
mikej committed Apr 27, 2023
1 parent 2b71b60 commit 9d5d7c3
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 52 deletions.
10 changes: 5 additions & 5 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ name = "pypi"
[dev-packages]

[packages]
rncryptor = "==3.2.0"
bpylist = "==0.1.4"
click = "==6.7"
rncryptor = "==3.3.0"
bpylist2 = "4.0.1"
click = "==8.1.3"
pyqrcode = "==1.2.1"
pycryptodome = "==3.9.1"
pycryptodome = "==3.17.0"

[requires]
python_version = "3.7"
python_version = "3.11"
90 changes: 46 additions & 44 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions decrypt_otpauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

import pyqrcode

from bpylist import archiver
from bpylist.archive_types import uid
from bpylist2 import archiver
from plistlib import UID

from Crypto.Cipher import AES

Expand Down Expand Up @@ -179,7 +179,7 @@ def decode_object(self, index):
return raw_obj

class_uid = raw_obj.get('$class')
if not isinstance(class_uid, uid):
if not isinstance(class_uid, UID):
raise archiver.MissingClassUID(raw_obj)

klass = self.class_for_uid(class_uid)
Expand Down

0 comments on commit 9d5d7c3

Please sign in to comment.