From 95c743fd0560b068ac16447804e278e4ac5ab804 Mon Sep 17 00:00:00 2001 From: Greg Bodnar Date: Sun, 4 Aug 2019 13:21:40 +1200 Subject: [PATCH] Use util wrapper for getpass This allows for tests to run without prompting for user input. --- jrnl/EncryptedJournal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jrnl/EncryptedJournal.py b/jrnl/EncryptedJournal.py index 9a1822e0..a83651e4 100644 --- a/jrnl/EncryptedJournal.py +++ b/jrnl/EncryptedJournal.py @@ -39,7 +39,7 @@ class EncryptedJournal(Journal.Journal): filename = filename or self.config['journal'] if not os.path.exists(filename): - password = getpass.getpass("Enter password for new journal: ") + password = util.getpass("Enter password for new journal: ") if password: if util.yesno("Do you want to store the password in your keychain?", default=True): util.set_keychain(self.name, password)