summaryrefslogtreecommitdiff
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/pydoc.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/pydoc.py b/Lib/pydoc.py
index f0c7cfce2e..49555405c5 100644
--- a/Lib/pydoc.py
+++ b/Lib/pydoc.py
@@ -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)