mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
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:
parent
e3d35b2fb9
commit
15bd408570
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user