diff options
author | njsmith <njs@pobox.com> | 2013-02-28 12:10:05 -0800 |
---|---|---|
committer | njsmith <njs@pobox.com> | 2013-02-28 12:10:05 -0800 |
commit | 4b361f62be7f750dc385d0b7dc7529ad9af5e4ea (patch) | |
tree | cbe8daa0a9806b2fa84e35d55af391f97a9ced98 /doc/sphinxext/docscrape.py | |
parent | e1c7c4df0c7afb0baff683c7e3a1f4b205d6e572 (diff) | |
parent | dd13084557f46343b9fac0c02725a826d0ca397b (diff) | |
download | numpy-4b361f62be7f750dc385d0b7dc7529ad9af5e4ea.tar.gz |
Merge pull request #3047 from charris/2to3-callable
2to3: Fix callable.
Diffstat (limited to 'doc/sphinxext/docscrape.py')
-rw-r--r-- | doc/sphinxext/docscrape.py | 3 |
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): |