summaryrefslogtreecommitdiff
path: root/sphinx/ext/autodoc.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2011-09-21 09:19:20 +0200
committerGeorg Brandl <georg@python.org>2011-09-21 09:19:20 +0200
commit44f396488c318b1b686d928e516b35be12b052d6 (patch)
tree6c3533a7a26c62cd2b44b1d3268029f0ff3c8375 /sphinx/ext/autodoc.py
parent9d5215c1c942470f924074ae52cc4cd3d0b93740 (diff)
downloadsphinx-git-44f396488c318b1b686d928e516b35be12b052d6.tar.gz
Fix #718: "pass" is not a good way to exit a function.
Diffstat (limited to 'sphinx/ext/autodoc.py')
-rw-r--r--sphinx/ext/autodoc.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/ext/autodoc.py b/sphinx/ext/autodoc.py
index 55ac820d1..f193947d5 100644
--- a/sphinx/ext/autodoc.py
+++ b/sphinx/ext/autodoc.py
@@ -912,7 +912,7 @@ class FunctionDocumenter(DocstringSignatureMixin, ModuleLevelDocumenter):
if inspect.isbuiltin(self.object) or \
inspect.ismethoddescriptor(self.object):
# cannot introspect arguments of a C function or method
- pass
+ return None
try:
argspec = getargspec(self.object)
except TypeError: