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.4.3rc1~329 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=66dd4aaa96a4d7c23b6e6c18c63f58258442784c;p=thirdparty%2FPython%2Fcpython.git Issue #20662: Argspec now is escaped in html output of pydoc. --- diff --git a/Lib/pydoc.py b/Lib/pydoc.py index 0b56f254de02..bfb0a03378c4 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: