[elbe-devel] [PATCH v2 0/5] Python3: fundamental compatibility changes

Christian Teklenborg chris at linutronix.de
Fri Dec 13 12:45:14 CET 2019


Make all necessary changes to build an xml via 'elbe initvm submit'
with both Python3 and Python2 on the Elbe client side.

In my tests I still created the initvm and ran elbe-daemon with Python2 only.

Changelog:
  v2: Apply the suggested changes from Torben's review.

Christian Teklenborg (5):
  Python3: change the urllib2 imports
  Python3: change xrange to range
  Python3: change file() to open()
  Python3: harmonize binary/unicode strings
  Python3: use integer division

 elbepack/aptpkgutils.py          |  2 +-
 elbepack/archivedir.py           |  2 +-
 elbepack/commands/control.py     |  8 ++++++--
 elbepack/commands/get_archive.py |  2 +-
 elbepack/commands/prjrepo.py     |  8 ++++++--
 elbepack/commands/setsel.py      |  2 +-
 elbepack/daemons/soap/esoap.py   |  8 ++++----
 elbepack/debpkg.py               |  2 +-
 elbepack/elbexml.py              | 27 ++++++++++++++++-----------
 elbepack/init/libvirt.xml.mako   |  2 +-
 elbepack/kvm.py                  | 10 ++++------
 elbepack/log.py                  |  7 +++++--
 elbepack/pbuilder.py             |  8 +++++---
 elbepack/shellhelper.py          |  6 ++++++
 elbepack/soapclient.py           | 23 +++++++++++++----------
 elbepack/xmlpreprocess.py        | 10 +++++++---
 16 files changed, 78 insertions(+), 49 deletions(-)

-- 
2.20.1




More information about the elbe-devel mailing list