From 66dd4aaa96a4d7c23b6e6c18c63f58258442784c Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Mon, 17 Nov 2014 23:48:02 +0200 Subject: Issue #20662: Argspec now is escaped in html output of pydoc. --- Lib/pydoc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/pydoc.py b/Lib/pydoc.py index 0b56f25..bfb0a03 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: -- cgit v0.12