From 43d1637fbfdf1754e5576ab1f392d3fd346c1e94 Mon Sep 17 00:00:00 2001 From: Mat Kelly Date: Sun, 1 Jul 2018 22:35:42 -0400 Subject: [PATCH] Update input method to six's version for #51 --- ipwb/indexer.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ipwb/indexer.py b/ipwb/indexer.py index a3bed9fd..b4f96f0c 100755 --- a/ipwb/indexer.py +++ b/ipwb/indexer.py @@ -28,6 +28,8 @@ from ipfsapi.exceptions import ConnectionError # from requests.exceptions import ConnectionError +from six.moves import input + from util import IPFSAPI_IP, IPFSAPI_PORT, IPWBREPLAY_IP, IPWBREPLAY_PORT # from warcio.archiveiterator import ArchiveIterator @@ -290,7 +292,7 @@ def askUserForEncryptionKey(): promptString = '' print(promptString, file=sys.stderr) - key = raw_input(promptString) + key = input(promptString) return key