[Python-checkins] cpython (merge 3.4 -> default): 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/1855b5c3da61
changeset:   93499:1855b5c3da61
parent:      93497:cf5b910ac4c8
parent:      93498:cf2e424e0413
user:        Serhiy Storchaka <storchaka at gmail.com>
date:        Mon Nov 17 23:48:35 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
@@ -954,7 +954,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