mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Issue #20662: Argspec now is escaped in html output of pydoc.
This commit is contained in:
commit
0ff742ce2b
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue