Fix #718: "pass" is not a good way to exit a function.

This commit is contained in:
Georg Brandl 2011-09-21 09:19:20 +02:00
parent 9d5215c1c9
commit 44f396488c

View File

@ -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: