raw_input -> input
This commit is contained in:
parent
57145534ca
commit
6b61805f01
1 changed files with 3 additions and 2 deletions
|
@ -18,6 +18,7 @@ import time
|
||||||
import pkg_resources
|
import pkg_resources
|
||||||
|
|
||||||
from six.moves.urllib.parse import urlparse
|
from six.moves.urllib.parse import urlparse
|
||||||
|
from six.moves import input
|
||||||
from six import string_types
|
from six import string_types
|
||||||
|
|
||||||
import ox
|
import ox
|
||||||
|
@ -455,13 +456,13 @@ class Client(object):
|
||||||
def config(self, args):
|
def config(self, args):
|
||||||
print("Current Config:\n User: %s\n URL: %s\n" % (self._config['username'], self._config['url']))
|
print("Current Config:\n User: %s\n URL: %s\n" % (self._config['username'], self._config['url']))
|
||||||
print("Leave empty to keep current value\n")
|
print("Leave empty to keep current value\n")
|
||||||
username = raw_input('Username: ')
|
username = input('Username: ')
|
||||||
if username:
|
if username:
|
||||||
self._config['username'] = username
|
self._config['username'] = username
|
||||||
password = getpass.getpass('Password: ')
|
password = getpass.getpass('Password: ')
|
||||||
if password:
|
if password:
|
||||||
self._config['password'] = 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:
|
if url:
|
||||||
self._config['url'] = url
|
self._config['url'] = url
|
||||||
self.save_config()
|
self.save_config()
|
||||||
|
|
Loading…
Reference in a new issue