##// 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 for func, rstrip in functions:
120 for func, rstrip in functions:
121 if func.__doc__:
121 if func.__doc__:
122 docobj = func # this might be a proxy to provide formatted doc
123 func = getattr(func, '_origfunc', func)
122 funcmod = inspect.getmodule(func)
124 funcmod = inspect.getmodule(func)
123 extra = ''
125 extra = ''
124 if funcmod.__package__ == funcmod.__name__:
126 if funcmod.__package__ == funcmod.__name__:
@@ -128,8 +130,8 b' def docstrings(path):'
128 src = inspect.getsource(func)
130 src = inspect.getsource(func)
129 name = "%s.%s" % (actualpath, func.__name__)
131 name = "%s.%s" % (actualpath, func.__name__)
130 lineno = inspect.getsourcelines(func)[1]
132 lineno = inspect.getsourcelines(func)[1]
131 doc = func.__doc__
133 doc = docobj.__doc__
132 origdoc = getattr(func, '_origdoc', '')
134 origdoc = getattr(docobj, '_origdoc', '')
133 if rstrip:
135 if rstrip:
134 doc = doc.rstrip()
136 doc = doc.rstrip()
135 origdoc = origdoc.rstrip()
137 origdoc = origdoc.rstrip()
@@ -3752,6 +3752,8 b' def bundlecompressiontopics():'
3752
3752
3753 value = docobject()
3753 value = docobject()
3754 value.__doc__ = doc
3754 value.__doc__ = doc
3755 value._origdoc = engine.bundletype.__doc__
3756 value._origfunc = engine.bundletype
3755
3757
3756 items[bt[0]] = value
3758 items[bt[0]] = value
3757
3759
General Comments 0
You need to be logged in to leave comments. Login now