This is not what format_type is for.
def _write_callback(self, callback):
attrs = []
def _write_callback(self, callback):
attrs = []
- if callback.namespace:
- attrs.append(('c:type', callback.ctype or callback.c_name))
+ if callback.ctype != callback.name:
+ attrs.append(('c:type', callback.ctype))
self._write_callable(callback, 'callback', attrs)
def _write_record(self, record, extra_attrs=[]):
self._write_callable(callback, 'callback', attrs)
def _write_record(self, record, extra_attrs=[]):
def format_function_name(self, func):
if func.parent is not None:
def format_function_name(self, func):
if func.parent is not None:
- return "%s.%s" % (self.format_type(func.parent), func.name)
+ return "%s.%s" % (func.parent.name, func.name)