diff options
author | Petr Viktorin <pviktori@redhat.com> | 2015-08-11 17:07:11 +0200 |
---|---|---|
committer | Jan Cholasta <jcholast@redhat.com> | 2015-09-01 11:42:01 +0200 |
commit | c27cb295a586cdc1f1cc9b933829db471e5100ed (patch) | |
tree | e483b4291a29d98e8b4b922794093ae68a6cdfe3 /ipalib/cli.py | |
parent | 5a9141dc409a4efe5a19d654319529d7c98a667a (diff) | |
download | freeipa-c27cb295a586cdc1f1cc9b933829db471e5100ed.tar.gz freeipa-c27cb295a586cdc1f1cc9b933829db471e5100ed.tar.xz freeipa-c27cb295a586cdc1f1cc9b933829db471e5100ed.zip |
Use six.moves.input instead of raw_input
In Python 3, raw_input() was renamed to input().
Import the function from six.moves to get the right version.
Reviewed-By: Christian Heimes <cheimes@redhat.com>
Reviewed-By: Jan Cholasta <jcholast@redhat.com>
Diffstat (limited to 'ipalib/cli.py')
-rw-r--r-- | ipalib/cli.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ipalib/cli.py b/ipalib/cli.py index afad07937..bd0e7fb0a 100644 --- a/ipalib/cli.py +++ b/ipalib/cli.py @@ -33,6 +33,7 @@ import base64 import traceback import six +from six.moves import input try: #pylint: disable=F0401 @@ -527,7 +528,7 @@ class textui(backend.Backend): def print_error(self, text): print ' ** %s **' % unicode(text) - def prompt_helper(self, prompt, label, prompt_func=raw_input): + def prompt_helper(self, prompt, label, prompt_func=input): """Prompt user for input Handles encoding the prompt and decoding the input. |