diff options
author | Georg Brandl <georg@python.org> | 2011-09-21 09:19:20 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2011-09-21 09:19:20 +0200 |
commit | 44f396488c318b1b686d928e516b35be12b052d6 (patch) | |
tree | 6c3533a7a26c62cd2b44b1d3268029f0ff3c8375 /sphinx/ext/autodoc.py | |
parent | 9d5215c1c942470f924074ae52cc4cd3d0b93740 (diff) | |
download | sphinx-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.py | 2 |
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: |