diff options
| author | Philipp Hahn <hahn@univention.de> | 2020-04-27 10:23:54 +0200 |
|---|---|---|
| committer | Philipp Hahn <pmhahn+github@pmhahn.de> | 2020-08-05 07:43:01 +0000 |
| commit | 77f57cd5ec6275c5d217cf2c09d7b2ea09d2587f (patch) | |
| tree | e2f47d13d92a990e34424500c11fa9769b02bf9e /examples | |
| parent | cb8cceb0d8498bf0e2595a0830ab253afc3d64c7 (diff) | |
| download | libvirt-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-x | examples/esxlist.py | 2 |
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 |
