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

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

 



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

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