From 15bd408570bd83a9ddaf451b91f13b645b6ec828 Mon Sep 17 00:00:00 2001 From: Radostin Stoyanov Date: Wed, 11 Oct 2017 12:36:04 +0100 Subject: [PATCH] Replace raw_input() with input() raw_input() was renamed to input() in Python 3 See https://www.python.org/dev/peps/pep-3111/ --- virtinst/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/virtinst/cli.py b/virtinst/cli.py index b506b4e85..e62f147cb 100644 --- a/virtinst/cli.py +++ b/virtinst/cli.py @@ -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)