Kaydet (Commit) 213f229f authored tarafından Serhiy Storchaka's avatar Serhiy Storchaka

Issue #29338: Don't output an empty signature for class constructor.

üst 0e830455
......@@ -917,7 +917,7 @@ class HTMLDoc(Doc):
signature = None
if signature:
argspec = str(signature)
if argspec:
if argspec and argspec != '()':
decl = name + self.escape(argspec) + '\n\n'
doc = getdoc(object)
......@@ -1236,7 +1236,7 @@ location listed above.
signature = None
if signature:
argspec = str(signature)
if argspec:
if argspec and argspec != '()':
push(name + argspec + '\n')
doc = getdoc(object)
......
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