[libvirt] [PATCH 2/4] apibuild: Add index.warning() method

Andrea Bolognani abologna at redhat.com
Mon Apr 25 13:20:40 UTC 2016


This method is used in eg. index.merge(), but is not defined
anywhere. The implementation has been copied from docBuilder.
---
 docs/apibuild.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/docs/apibuild.py b/docs/apibuild.py
index 648036f..b1a9d41 100755
--- a/docs/apibuild.py
+++ b/docs/apibuild.py
@@ -240,6 +240,11 @@ class index:
         self.references = {}
         self.info = {}
 
+    def warning(self, msg):
+        global warnings
+        warnings = warnings + 1
+        print msg
+
     def add_ref(self, name, header, module, static, type, lineno, info=None, extra=None, conditionals = None):
         if name[0:2] == '__':
             return None
-- 
2.5.5




More information about the libvir-list mailing list