Commit 66dd4aaa authored by Serhiy Storchaka's avatar Serhiy Storchaka

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

parent 030e92d1
...@@ -956,7 +956,7 @@ class HTMLDoc(Doc): ...@@ -956,7 +956,7 @@ class HTMLDoc(Doc):
if not argspec: if not argspec:
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)) '<font face="helvetica, arial">%s</font>' % note))
if skipdocs: if skipdocs:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment