]> granicus.if.org Git - python/commitdiff
Issue #20662: Argspec now is escaped in html output of pydoc.
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 17 Nov 2014 21:48:02 +0000 (23:48 +0200)
committerSerhiy Storchaka <storchaka@gmail.com>
Mon, 17 Nov 2014 21:48:02 +0000 (23:48 +0200)
Lib/pydoc.py

index 0b56f254de0247c498aeca07f94d24f10efe446c..bfb0a03378c4d0ecf73c61ee006c5c3979d925c3 100755 (executable)
@@ -956,7 +956,7 @@ class HTMLDoc(Doc):
         if not argspec:
             argspec = '(...)'
 
-        decl = title + argspec + (note and self.grey(
+        decl = title + self.escape(argspec) + (note and self.grey(
                '<font face="helvetica, arial">%s</font>' % note))
 
         if skipdocs: