nova/tools/xenserver
Matthew Edmonds d7ed9a550b Make Xen code py3-compatible
A couple places in the Xen code have been using syntax that is
python2-specific. This replaces those instances with code that will
work in both python2 and python3.

PEP 3108 [1] moves urllib.urlopen to urllib.request.urlopen. The six
module is used in order to work in both python2 and python3 [2].

PEP 3110 [3] changed the grammar for except clauses, such that the
'as' keyword is now required in place of a comma when specifying an
exception variable.

[1] https://www.python.org/dev/peps/pep-3108/
[2] https://pythonhosted.org/six/#module-six.moves.urllib.request
[3] https://www.python.org/dev/peps/pep-3110/

Change-Id: I1235d767718a4207f4cef3e5b140319d003ad7b0
2018-08-10 20:04:19 +00:00
..
destroy_cached_images.py Remove deprecated monkey_patch config options 2018-05-16 11:40:41 -04:00
populate_other_config.py Remove usage of config option verbose 2017-02-27 10:02:45 +08:00
rotate_xen_guest_logs.sh XenAPI: Fix race on rotate_xen_guest_logs 2016-01-19 10:15:08 +00:00
stress_test.py Add Apache 2.0 license to source file 2016-09-29 11:15:32 +07:00
vdi_chain_cleanup.py Make print py3 compatible 2016-06-25 08:19:27 +00:00
vm_vdi_cleaner.py Make Xen code py3-compatible 2018-08-10 20:04:19 +00:00