コード例 #1
0
 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
コード例 #2
0
	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