From 6b61805f0184351c1197bb0abf99eae056321dec Mon Sep 17 00:00:00 2001 From: j Date: Mon, 9 Oct 2017 13:50:21 +0200 Subject: [PATCH] raw_input -> input --- pandora_client/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pandora_client/__init__.py b/pandora_client/__init__.py index 7cc5bff..c6cddd6 100755 --- a/pandora_client/__init__.py +++ b/pandora_client/__init__.py @@ -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()