[Python-checkins] cpython (3.4): Issue #20662: Argspec now is escaped in html output of pydoc.
serhiy.storchaka
python-checkins at python.org
Mon Nov 17 22:50:53 CET 2014
https://hg.python.org/cpython/rev/cf2e424e0413
changeset: 93498:cf2e424e0413
branch: 3.4
parent: 93494:df5c6b05238e
user: Serhiy Storchaka <storchaka at gmail.com>
date: Mon Nov 17 23:48:02 2014 +0200
summary:
Issue #20662: Argspec now is escaped in html output of pydoc.
files:
Lib/pydoc.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/pydoc.py b/Lib/pydoc.py
--- a/Lib/pydoc.py
+++ b/Lib/pydoc.py
@@ -956,7 +956,7 @@
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:
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list