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