]> xenbits.xensource.com Git - libvirt.git/commitdiff
docs: Add method to print warnings in docBuilder class
authorPeter Krempa <pkrempa@redhat.com>
Fri, 27 Jul 2012 13:03:03 +0000 (15:03 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 27 Jul 2012 13:47:15 +0000 (15:47 +0200)
The method was not existing and did not allow to diagnose problems.

docs/apibuild.py

index 05c2c8b754c80e62dc3b9f988eca7f6063552bfe..3f0ecd939d3ebc8ec0f633ea9b85c490b395e5f1 100755 (executable)
@@ -1961,6 +1961,11 @@ class docBuilder:
         self.index = {}
         self.basename = name
 
+    def warning(self, msg):
+        global warnings
+        warnings = warnings + 1
+        print msg
+
     def indexString(self, id, str):
         if str == None:
             return