From: Serhiy Storchaka Date: Mon, 17 Nov 2014 21:48:02 +0000 (+0200) Subject: Issue #20662: Argspec now is escaped in html output of pydoc. X-Git-Tag: v3.5.0a1~478^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=66dd4aaa96a4d7c23b6e6c18c63f58258442784c;p=python Issue #20662: Argspec now is escaped in html output of pydoc. --- diff --git a/Lib/pydoc.py b/Lib/pydoc.py index 0b56f254de..bfb0a03378 100755 --- a/Lib/pydoc.py +++ b/Lib/pydoc.py @@ -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( '%s' % note)) if skipdocs: