Show More
@@ -119,6 +119,8 b' def docstrings(path):' | |||
|
119 | 119 | |
|
120 | 120 | for func, rstrip in functions: |
|
121 | 121 | if func.__doc__: |
|
122 | docobj = func # this might be a proxy to provide formatted doc | |
|
123 | func = getattr(func, '_origfunc', func) | |
|
122 | 124 | funcmod = inspect.getmodule(func) |
|
123 | 125 | extra = '' |
|
124 | 126 | if funcmod.__package__ == funcmod.__name__: |
@@ -128,8 +130,8 b' def docstrings(path):' | |||
|
128 | 130 | src = inspect.getsource(func) |
|
129 | 131 | name = "%s.%s" % (actualpath, func.__name__) |
|
130 | 132 | lineno = inspect.getsourcelines(func)[1] |
|
131 |
doc = |
|
|
132 |
origdoc = getattr( |
|
|
133 | doc = docobj.__doc__ | |
|
134 | origdoc = getattr(docobj, '_origdoc', '') | |
|
133 | 135 | if rstrip: |
|
134 | 136 | doc = doc.rstrip() |
|
135 | 137 | origdoc = origdoc.rstrip() |
General Comments 0
You need to be logged in to leave comments.
Login now