[Libguestfs] [PATCH 0/2] Fix node_set_values[s] for Python 2/3

Peter Wu peter at lekensteyn.nl
Fri Aug 8 18:39:40 UTC 2014


Hi,

Here is a fix for the Python issue I encountered the other day. It adds more
validation to the node_set_value wrapper and supports the following types on
Python 2 and 3: Unicode strings, bytes and integers (for DWORD/QWORDs).

The second patch is a trivial whitespace-only change.

Peter Wu (2):
  Add type checking, support integers as value
  generator: Fix mixed tabs/spaces

 configure.ac                   |   4 -
 generator/generator.ml         | 612 ++++++++++++++++++++++-------------------
 python/t/300-setvalue-types.py |  76 +++++
 3 files changed, 410 insertions(+), 282 deletions(-)
 create mode 100644 python/t/300-setvalue-types.py

-- 
2.0.2




More information about the Libguestfs mailing list