Displaying 1 result from an estimated 1 matches for "470abe7".
2016 May 05
1
[PATCH] python: use constants instead of raw values
...o
there is no need to hardcode values in GuestFS.__init__.
---
generator/python.ml | 7 +++++--
python/guestfs-py-byhand.c | 7 +++++++
python/guestfs-py.h | 2 ++
3 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/generator/python.ml b/generator/python.ml
index 9744b8f..470abe7 100644
--- a/generator/python.ml
+++ b/generator/python.ml
@@ -597,6 +597,9 @@ moduleinit (void)
m = Py_InitModule ((char *) \"libguestfsmod\", methods);
#endif
+ if (m != NULL)
+ guestfs_int_py_extend_module (m);
+
return m; /* m might be NULL if module init failed */
}
@...