From 620f176826fa8ce7c20f7cc3ce6395c8537bad2c Mon Sep 17 00:00:00 2001 From: Arinerron Date: Wed, 18 Apr 2018 19:25:16 -0700 Subject: [PATCH] use sys.stdin.readline() rather than input() --- onionr/logger.py | 4 ++-- onionr/onionr.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/onionr/logger.py b/onionr/logger.py index 23ede687..36ece538 100644 --- a/onionr/logger.py +++ b/onionr/logger.py @@ -164,8 +164,8 @@ def readline(message = ''): output = colors.filter(output) sys.stdout.write(output) - - return input() + + return sys.stdin.readline() def confirm(default = 'y', message = 'Are you sure %s? '): ''' diff --git a/onionr/onionr.py b/onionr/onionr.py index 699af257..bd173596 100755 --- a/onionr/onionr.py +++ b/onionr/onionr.py @@ -93,7 +93,7 @@ class Onionr: if os.path.exists('data/'): break else: - logger.error('Failed to decrypt: ' + result[1]) + logger.error('Failed to decrypt: ' + result[1], timestamp = False) else: if not os.path.exists('data/'): os.mkdir('data/') @@ -402,7 +402,7 @@ class Onionr: Displays a "command not found" message ''' - logger.error('Command not found.') + logger.error('Command not found.', timestamp = False) def showHelpSuggestion(self): '''