[libvirt] [PATCH python 3/7] Removed unused 'foreign_encoding_args' code from generator
Daniel P. Berrange
berrange at redhat.com
Thu Jan 19 15:31:23 UTC 2017
The 'foreign_encoding_args' data structure and associated code
in the generator is inherited from libxml. This has never
been used in libvirt, so delete it to simplify the generator.
Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
---
generator.py | 5 -----
1 file changed, 5 deletions(-)
diff --git a/generator.py b/generator.py
index 3dce74b..decda72 100755
--- a/generator.py
+++ b/generator.py
@@ -370,9 +370,6 @@ py_return_types = {
unknown_types = {}
-foreign_encoding_args = (
-)
-
#######################################################################
#
# This part writes the C <-> Python stubs libvirt.[ch] and
@@ -693,8 +690,6 @@ def print_function_wrapper(module, name, output, export, include):
c_args = c_args + " %s %s;\n" % (arg[1], arg[0])
if arg[1] in py_types:
(f, t, n, c) = py_types[arg[1]]
- if (f == 'z') and (name in foreign_encoding_args) and (num_bufs == 0):
- f = 't#'
if f is not None:
format = format + f
if t is not None:
--
2.9.3
More information about the libvir-list
mailing list