summaryrefslogtreecommitdiffstats
path: root/Lib/pydoc.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2014-11-17 21:48:35 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2014-11-17 21:48:35 (GMT)
commit0ff742ce2bf95766886fe4265ab8c24f4f50bc0f (patch)
treedd6a05899311e8f0a3bf4afebcb1144732f7fac4 /Lib/pydoc.py
parenta34cd0c781d8e6581fdb4927560f81b594e29f1d (diff)
parent66dd4aaa96a4d7c23b6e6c18c63f58258442784c (diff)
downloadcpython-0ff742ce2bf95766886fe4265ab8c24f4f50bc0f.zip
cpython-0ff742ce2bf95766886fe4265ab8c24f4f50bc0f.tar.gz
cpython-0ff742ce2bf95766886fe4265ab8c24f4f50bc0f.tar.bz2
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 2921f3d..11451e8 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: