Upgrade to cryptography 1.4

This commit is contained in:
Manuel Ebert 2016-08-17 13:41:54 +00:00
parent e7b8158d22
commit 69fc08f6f3
2 changed files with 3 additions and 3 deletions

View file

@ -57,8 +57,8 @@ class EncryptedJournal(Journal.Journal):
@classmethod
def _create(cls, filename, password):
key = make_key(password)
dummy = Fernet(key).encrypt("")
with open(filename, 'w') as f:
dummy = Fernet(key).encrypt(b"")
with open(filename, 'wb') as f:
f.write(dummy)

View file

@ -86,7 +86,7 @@ setup(
"cryptography==1.4",
"tzlocal>=1.2",
"pyyaml>=3.11",
"keyring==7.3",
"keyring>=7.3",
"passlib>=1.6.2",
"pyxdg>=0.25",
] + [p for p, cond in conditional_dependencies.items() if cond],