Issue #20662: Argspec now is escaped in html output of pydoc.

This commit is contained in:
Serhiy Storchaka 2014-11-17 23:48:02 +02:00
parent 030e92d1a5
commit 66dd4aaa96

View file

@ -956,7 +956,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: