From ccaceab7bdcc5abe215444daac31951591ba6713 Mon Sep 17 00:00:00 2001 From: Andrea Bolognani Date: Mon, 25 Apr 2016 14:23:04 +0200 Subject: [PATCH] apibuild: Add index.warning() method This method is used in eg. index.merge(), but is not defined anywhere. The implementation has been copied from docBuilder. --- docs/apibuild.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/apibuild.py b/docs/apibuild.py index 648036ff58..b1a9d41812 100755 --- a/docs/apibuild.py +++ b/docs/apibuild.py @@ -240,6 +240,11 @@ class index: self.references = {} self.info = {} + def warning(self, msg): + global warnings + warnings = warnings + 1 + print msg + def add_ref(self, name, header, module, static, type, lineno, info=None, extra=None, conditionals = None): if name[0:2] == '__': return None