From: Peter Krempa Date: Fri, 27 Jul 2012 13:03:03 +0000 (+0200) Subject: docs: Add method to print warnings in docBuilder class X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=b889bac171fcbfa7dab34a18b15e0b7fd24d7b1c;p=libvirt.git docs: Add method to print warnings in docBuilder class The method was not existing and did not allow to diagnose problems. --- diff --git a/docs/apibuild.py b/docs/apibuild.py index 05c2c8b754..3f0ecd939d 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