diff options
author | Georg Brandl <georg@python.org> | 2005-10-01 16:32:31 +0000 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2005-10-01 16:32:31 +0000 |
commit | a3c8fc7fc661757d6bfd0ae08ce1eeb5edb23863 (patch) | |
tree | ccf3ea410225ecda3ea2b41a056e904e941d3ae5 /Lib/pydoc.py | |
parent | 40318ea46be804dc40582f24df0bd9b2ebbdcdca (diff) | |
download | cpython-a3c8fc7fc661757d6bfd0ae08ce1eeb5edb23863.tar.gz |
bug [ 729103 ] Cannot retrieve name of super object
Diffstat (limited to 'Lib/pydoc.py')
-rwxr-xr-x | Lib/pydoc.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/pydoc.py b/Lib/pydoc.py index e0add86252..4084b7e39d 100755 --- a/Lib/pydoc.py +++ b/Lib/pydoc.py @@ -1079,7 +1079,7 @@ class TextDoc(Doc): if data: contents = [] for key, value in data: - contents.append(self.docother(value, key, name, 70)) + contents.append(self.docother(value, key, name, maxlen=70)) result = result + self.section('DATA', join(contents, '\n')) if hasattr(object, '__version__'): @@ -1164,7 +1164,7 @@ class TextDoc(Doc): else: doc = None push(self.docother(getattr(object, name), - name, mod, 70, doc) + '\n') + name, mod, maxlen=70, doc=doc) + '\n') return attrs attrs = filter(lambda (name, kind, cls, value): visiblename(name), @@ -1272,7 +1272,7 @@ class TextDoc(Doc): """Produce text documentation for a property.""" return self._docdescriptor(name, object, mod) - def docother(self, object, name=None, mod=None, maxlen=None, doc=None): + def docother(self, object, name=None, mod=None, parent=None, maxlen=None, doc=None): """Produce text documentation for a data object.""" repr = self.repr(object) if maxlen: |