[libvirt] [PATCH 1/2] docs: Add method to print warnings in docBuilder class

Peter Krempa pkrempa at redhat.com
Fri Jul 27 13:23:31 UTC 2012


The method was not existing and did not allow to diagnose problems.
---
 docs/apibuild.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/docs/apibuild.py b/docs/apibuild.py
index 05c2c8b..3f0ecd9 100755
--- a/docs/apibuild.py
+++ b/docs/apibuild.py
@@ -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
-- 
1.7.8.6




More information about the libvir-list mailing list