diff options
author | Georg Brandl <georg@python.org> | 2005-10-01 16:32:31 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2005-10-01 16:32:31 (GMT) |
commit | 8b813db2ef90ae83c3c6dcaa7ac3122290c9faf4 (patch) | |
tree | 475d5c8a193dbdf79f9178ecac208bce5df55223 /Lib/pydoc.py | |
parent | ce7da6c5e97c45256f6570858f5a73a138910892 (diff) | |
download | cpython-8b813db2ef90ae83c3c6dcaa7ac3122290c9faf4.zip cpython-8b813db2ef90ae83c3c6dcaa7ac3122290c9faf4.tar.gz cpython-8b813db2ef90ae83c3c6dcaa7ac3122290c9faf4.tar.bz2 |
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 e0add86..4084b7e 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: |