MCPcopy Create free account
hub / github.com/Distrotech/reportlab / _showFunctionDemoCode

Method _showFunctionDemoCode

tools/docco/graphdocpy.py:578–585  ·  view source on GitHub ↗

Show a demo code of the function generating the drawing.

(self, function)

Source from the content-addressed store, hash-verified

576
577
578 def _showFunctionDemoCode(self, function):
579 """Show a demo code of the function generating the drawing."""
580 # Heading
581 self.outLines.append('<H3>Example</H3>')
582
583 # Sample code
584 codeSample = inspect.getsource(function)
585 self.outLines.append('<PRE>%s</PRE>' % codeSample)
586
587
588 def _showDrawingDemo(self, drawing, name):

Callers 1

endFunctionMethod · 0.95

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected