Replace raw_input() with input()

raw_input() was renamed to input() in Python 3

See https://www.python.org/dev/peps/pep-3111/
This commit is contained in:
Radostin Stoyanov 2017-10-11 12:36:04 +01:00 committed by Cole Robinson
parent e3d35b2fb9
commit 15bd408570

View File

@ -296,7 +296,7 @@ def _do_creds_authname(creds):
res = cred[retindex]
if credtype == libvirt.VIR_CRED_AUTHNAME:
res = raw_input(prompt)
res = getattr(__builtins__, 'raw_input', input)(prompt)
elif credtype == libvirt.VIR_CRED_PASSPHRASE:
import getpass
res = getpass.getpass(prompt)