##// END OF EJS Templates
Small fix to prevent the display of auto-generated module docstrings that have no useful info
fperez -
Show More
@@ -6,7 +6,7 b' Uses syntax highlighting for presenting the various information elements.'
6 6 Similar in spirit to the inspect module, but all calls take a name argument to
7 7 reference the name under which an object is being read.
8 8
9 $Id: OInspect.py 2573 2007-08-01 14:55:46Z vivainio $
9 $Id: OInspect.py 2584 2007-08-05 18:16:31Z fperez $
10 10 """
11 11
12 12 #*****************************************************************************
@@ -470,7 +470,8 b' class Inspector:'
470 470 # Skip Python's auto-generated docstrings
471 471 if class_ds and \
472 472 (class_ds.startswith('function(code, globals[,') or \
473 class_ds.startswith('instancemethod(function, instance,')):
473 class_ds.startswith('instancemethod(function, instance,') or \
474 class_ds.startswith('module(name[,') ):
474 475 class_ds = None
475 476 if class_ds and ds != class_ds:
476 477 out.writeln(header('Class Docstring:\n') +
General Comments 0
You need to be logged in to leave comments. Login now