Merged changes in the trunk up to revision 42116.

This commit is contained in:
Tamito Kajiyama
2011-11-26 13:11:55 +00:00
267 changed files with 3952 additions and 2521 deletions

View File

@@ -72,7 +72,7 @@ def reduce_spaces(text):
return RE_SPACE.sub(' ', text)
def get_doc(object):
def get_doc(obj):
"""Get the doc string or comments for an object.
:param object: object
@@ -82,7 +82,7 @@ def get_doc(object):
>>> get_doc(abs)
'abs(number) -> number\\n\\nReturn the absolute value of the argument.'
"""
result = inspect.getdoc(object) or inspect.getcomments(object)
result = inspect.getdoc(obj) or inspect.getcomments(obj)
return result and RE_EMPTY_LINE.sub('', result.rstrip()) or ''