summary refs log tree commit diff stats
path: root/scripts/qapi/expr.py
diff options
context:
space:
mode:
authorAlex Bennée <alex.bennee@linaro.org>2019-08-29 12:08:27 +0100
committerAlex Bennée <alex.bennee@linaro.org>2019-09-02 10:52:22 +0100
commit4112aff7cdd932f273e920911a45a5d5a2d5d299 (patch)
tree4dccb53604d4166f88c36c9465b103ee06ca388d /scripts/qapi/expr.py
parent6954a04d5dc587496b9a3f19c6637bf6391696de (diff)
downloadfocaccia-qemu-4112aff7cdd932f273e920911a45a5d5a2d5d299.tar.gz
focaccia-qemu-4112aff7cdd932f273e920911a45a5d5a2d5d299.zip
tests/docker: upgrade docker.py to python3
The recent podman changes (9459f754134bb) imported enum which is part
of the python3 standard library but only available as an external
library for python2. This causes problems on the fairly restricted
environment such as shippable. Lets bite the bullet and make the
script a fully python3 one. To that end:

  - drop the from __future__ import (we are there now ;-)
  - avoid the StringIO import hack
  - be consistent with the mode we read/write dockerfiles
  - s/iteritems/items/
  - ensure check_output returns strings for processing

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Cc: Marc-André Lureau <marcandre.lureau@redhat.com>
Diffstat (limited to 'scripts/qapi/expr.py')
0 files changed, 0 insertions, 0 deletions