]> granicus.if.org Git - python/commitdiff
#10549: fix interface of docclass() for text documenter.
authorGeorg Brandl <georg@python.org>
Fri, 3 Dec 2010 09:58:38 +0000 (09:58 +0000)
committerGeorg Brandl <georg@python.org>
Fri, 3 Dec 2010 09:58:38 +0000 (09:58 +0000)
Lib/pydoc.py
Misc/NEWS

index 282fe15ec982aee2771927bf15d2eb39dc3ff7ba..0cb1c7f861bef2dab2fea9255c414c4f9931a9ac 100755 (executable)
@@ -1132,7 +1132,7 @@ doubt, consult the module reference at the location listed above.
         result = result + self.section('FILE', file)
         return result
 
-    def docclass(self, object, name=None, mod=None):
+    def docclass(self, object, name=None, mod=None, *ignored):
         """Produce text documentation for a given class object."""
         realname = object.__name__
         name = name or realname
index 91507649f615573e2f8230b216d1e02d64f33548..7de6838af3648c1b95bfdbe4b2ce9cb6dfe1a7c8 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -33,6 +33,8 @@ Core and Builtins
 Library
 -------
 
+- Issue #10549: Fix pydoc traceback when text-documenting certain classes.
+
 - Issue #2001: New HTML server with enhanced Web page features.  Patch by Ron
   Adam.