raw_input -> input

This commit is contained in:
j 2017-10-09 13:50:21 +02:00
parent 57145534ca
commit 6b61805f01
1 changed files with 3 additions and 2 deletions

View File

@ -18,6 +18,7 @@ import time
import pkg_resources
from six.moves.urllib.parse import urlparse
from six.moves import input
from six import string_types
import ox
@ -455,13 +456,13 @@ class Client(object):
def config(self, args):
print("Current Config:\n User: %s\n URL: %s\n" % (self._config['username'], self._config['url']))
print("Leave empty to keep current value\n")
username = raw_input('Username: ')
username = input('Username: ')
if username:
self._config['username'] = username
password = getpass.getpass('Password: ')
if password:
self._config['password'] = password
url = raw_input('Pan.do/ra URL (i.e. https://pandora.local/api/): ')
url = input('Pan.do/ra URL (i.e. https://pandora.local/api/): ')
if url:
self._config['url'] = url
self.save_config()