use sys.stdin.readline() rather than input()
parent
5dd0437f14
commit
620f176826
|
@ -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? '):
|
||||
'''
|
||||
|
|
|
@ -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):
|
||||
'''
|
||||
|
|
Loading…
Reference in New Issue