summaryrefslogtreecommitdiff
path: root/Lib/pydoc.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-11-17 23:48:35 +0200
committerSerhiy Storchaka <storchaka@gmail.com>2014-11-17 23:48:35 +0200
commit0ff742ce2bf95766886fe4265ab8c24f4f50bc0f (patch)
treedd6a05899311e8f0a3bf4afebcb1144732f7fac4 /Lib/pydoc.py
parenta34cd0c781d8e6581fdb4927560f81b594e29f1d (diff)
parent66dd4aaa96a4d7c23b6e6c18c63f58258442784c (diff)
downloadcpython-git-0ff742ce2bf95766886fe4265ab8c24f4f50bc0f.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 2921f3d4fa..11451e8473 100755
--- a/Lib/pydoc.py
+++ b/Lib/pydoc.py
@@ -954,7 +954,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: