##// END OF EJS Templates
i18n: use saved object to get actual function information if available...
FUJIWARA Katsunori -
r33817:ed04d725 default
parent child Browse files
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 = func.__doc__
132 origdoc = getattr(func, '_origdoc', '')
133 doc = docobj.__doc__
134 origdoc = getattr(docobj, '_origdoc', '')
133 135 if rstrip:
134 136 doc = doc.rstrip()
135 137 origdoc = origdoc.rstrip()
@@ -3752,6 +3752,8 b' def bundlecompressiontopics():'
3752 3752
3753 3753 value = docobject()
3754 3754 value.__doc__ = doc
3755 value._origdoc = engine.bundletype.__doc__
3756 value._origfunc = engine.bundletype
3755 3757
3756 3758 items[bt[0]] = value
3757 3759
General Comments 0
You need to be logged in to leave comments. Login now