summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorPhilipp Hahn <hahn@univention.de>2020-04-27 10:23:54 +0200
committerPhilipp Hahn <pmhahn+github@pmhahn.de>2020-08-05 07:43:01 +0000
commit77f57cd5ec6275c5d217cf2c09d7b2ea09d2587f (patch)
treee2f47d13d92a990e34424500c11fa9769b02bf9e /examples
parentcb8cceb0d8498bf0e2595a0830ab253afc3d64c7 (diff)
downloadlibvirt-python-77f57cd5ec6275c5d217cf2c09d7b2ea09d2587f.tar.gz
examples/esxlist: Fix Python 2 raw_input()
which was renamed to input() for Python 3. Signed-off-by: Philipp Hahn <hahn@univention.de>
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/esxlist.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/esxlist.py b/examples/esxlist.py
index caeced1..7148f14 100755
--- a/examples/esxlist.py
+++ b/examples/esxlist.py
@@ -32,7 +32,7 @@ def request_credentials(credentials, user_data):
for credential in credentials:
if credential[0] == libvirt.VIR_CRED_AUTHNAME:
# prompt the user to input a authname. display the provided message
- credential[4] = raw_input(credential[1] + ": ")
+ credential[4] = input(credential[1] + ": ")
# if the user just hits enter raw_input() returns an empty string.
# in this case return the default result through the last item of