def inheritance(self, className=''): if className: print >> self.output, 'Inheritance for %s class\n' % className else: print >> self.output, 'Inheritance for all classes:\n' inheritance.InheritanceGrapher(self.terms, inheritance.TextRenderer( self.output)).draw(className) print >> self.output
def inheritance(self, className=''): if className: if not self.terms.classes().exists(className): raise HelpError('No information available for class %r.' % className) print >> self.output, 'Inheritance for %s class\n' % className else: print >> self.output, 'Inheritance for all classes:\n' inheritance.InheritanceGrapher(self.terms, inheritance.TextRenderer(self.output)).draw(className) print >> self.output