[PATCH python 00/14] Finished port to Python3

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: "Daniel P. Berrange" <berrange@xxxxxxxxxx>

This series finishes the initial port to Python3. The code
generator works, the C code compiles without warnings, and
the sanitytest passes.

The APIs using strings have all switched to PyUnicode
except for thos which deal with binary data which now use
PyBytes in Python 3 builds.

Daniel P. Berrange (14):
  examples: Invoke print("...") instead of print "..."
  examples: Ensure we write bytes to the self-pipe
  override: Fix native module registration to work with Python3
  sanitytest: Fix libvirtError class handling for Python 2.4
  override: Replace PyString_FromString with libvirt_constcharPtrWrap
  override: Replace PyString_AsString with libvirt_charPtrUnwrap
  override: Replace Py{Int,Long}_FromLong with helpers
  override: Replace PyInt_AsLong with helper
  typewrappers: Replace use of PyString class
  typewrappers: PyInt/PyLong merge for Python3
  override: Conditionalize use of PyString_Check and PyInt_Check
  override: Switch virStreamSend wrapper to use
    libvirt_charPtrSizeUnwrap
  sanitytest: Fix broken comparison between int and string
  sanitytest: remove use of string.lower()

 examples/consolecallback.py |   6 +-
 examples/dominfo.py         |  14 +-
 examples/domrestore.py      |  17 +--
 examples/domsave.py         |  15 +-
 examples/domstart.py        |  19 ++-
 examples/esxlist.py         |  14 +-
 examples/event-test.py      |  70 ++++-----
 examples/topology.py        |  14 +-
 libvirt-lxc-override.c      |  75 +++++++---
 libvirt-override.c          | 348 ++++++++++++++++++++++++++------------------
 libvirt-qemu-override.c     |  77 +++++++---
 sanitytest.py               |  10 +-
 typewrappers.c              |  97 +++++++++++-
 typewrappers.h              |   3 +
 14 files changed, 500 insertions(+), 279 deletions(-)

-- 
1.8.3.1

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]