Skip to content

Commit 66dd4aa

Browse files
Issue #20662: Argspec now is escaped in html output of pydoc.
1 parent 030e92d commit 66dd4aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/pydoc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -956,7 +956,7 @@ def docroutine(self, object, name=None, mod=None,
956956
if not argspec:
957957
argspec = '(...)'
958958

959-
decl = title + argspec + (note and self.grey(
959+
decl = title + self.escape(argspec) + (note and self.grey(
960960
'<font face="helvetica, arial">%s</font>' % note))
961961

962962
if skipdocs:

0 commit comments

Comments
 (0)