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

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

 



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

--
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]