summaryrefslogtreecommitdiff
path: root/doc/sphinxext/docscrape.py
diff options
context:
space:
mode:
Diffstat (limited to 'doc/sphinxext/docscrape.py')
-rw-r--r--doc/sphinxext/docscrape.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/sphinxext/docscrape.py b/doc/sphinxext/docscrape.py
index b08643c8b..2348149ac 100644
--- a/doc/sphinxext/docscrape.py
+++ b/doc/sphinxext/docscrape.py
@@ -8,6 +8,7 @@ import re
import pydoc
from StringIO import StringIO
from warnings import warn
+import collections
class Reader(object):
"""A line-based string reader.
@@ -495,7 +496,7 @@ class ClassDoc(NumpyDocString):
return [name for name,func in inspect.getmembers(self._cls)
if ((not name.startswith('_')
or name in self.extra_public_methods)
- and callable(func))]
+ and isinstance(func, collections.Callable))]
@property
def properties(self):