summaryrefslogtreecommitdiff
path: root/Lib/pydoc.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-11-17 23:48:02 +0200
committerSerhiy Storchaka <storchaka@gmail.com>2014-11-17 23:48:02 +0200
commit66dd4aaa96a4d7c23b6e6c18c63f58258442784c (patch)
tree3031971688c1a8de2a051fa3e86da66b10a17930 /Lib/pydoc.py
parent030e92d1a51c2caef0c23a74e65f0aaff002158f (diff)
downloadcpython-git-66dd4aaa96a4d7c23b6e6c18c63f58258442784c.tar.gz
Issue #20662: Argspec now is escaped in html output of pydoc.
Diffstat (limited to 'Lib/pydoc.py')
-rwxr-xr-xLib/pydoc.py2
1 files changed, 1 insertions, 1 deletions
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(
'<font face="helvetica, arial">%s</font>' % note))
if skipdocs: