mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
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.
This commit is contained in:
parent
22a592a4fe
commit
ccaceab7bd
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user