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

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



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


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