Skip to content

Commit 0c4d7ee

Browse files
committed
Fixed syntax
1 parent 264410a commit 0c4d7ee

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

PyPassword.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,8 @@ def get_password():
313313
except FileNotFoundError:
314314
pass
315315
else:
316-
if (n := type(to_decrypt)) is not None:
316+
n = type(to_decrypt)
317+
if n is not None:
317318
to_decrypt = to_decrypt[0][0]
318319
if n is bytes:
319320
with open(file(File.alpha_key), 'rb') as f:
@@ -466,7 +467,9 @@ def exit_program():
466467

467468
clear()
468469

469-
if (c := choice.lower()) in ('1', 'a', 'change'):
470+
c = choice.lower()
471+
472+
if c in ('1', 'a', 'change'):
470473
generate_master_key()
471474

472475
elif c in ('2', 'g', 'get'):

0 commit comments

Comments
 (0)