diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2014-11-17 21:48:35 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2014-11-17 21:48:35 (GMT) |
commit | 0ff742ce2bf95766886fe4265ab8c24f4f50bc0f (patch) | |
tree | dd6a05899311e8f0a3bf4afebcb1144732f7fac4 /Lib/pydoc.py | |
parent | a34cd0c781d8e6581fdb4927560f81b594e29f1d (diff) | |
parent | 66dd4aaa96a4d7c23b6e6c18c63f58258442784c (diff) | |
download | cpython-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-x | Lib/pydoc.py | 2 |
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: |