diff options
author | Daniel Neuhäuser <ich@danielneuhaeuser.de> | 2010-06-19 19:58:28 +0200 |
---|---|---|
committer | Daniel Neuhäuser <ich@danielneuhaeuser.de> | 2010-06-19 19:58:28 +0200 |
commit | 0780242572de30cb19b524898d37afd313fc66c3 (patch) | |
tree | 54c525dbb6501db8f5a1d10d1f906b73ec5f1027 /sphinx/ext/coverage.py | |
parent | 1f5c4e6c9c2385498ae7e10f5aeea4844e142c22 (diff) | |
download | sphinx-git-0780242572de30cb19b524898d37afd313fc66c3.tar.gz |
Fixed the coverage extension test as well as the coverage extension itself for python3
Diffstat (limited to 'sphinx/ext/coverage.py')
-rw-r--r-- | sphinx/ext/coverage.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sphinx/ext/coverage.py b/sphinx/ext/coverage.py index 4924d30b0..f41820e2a 100644 --- a/sphinx/ext/coverage.py +++ b/sphinx/ext/coverage.py @@ -173,8 +173,11 @@ class CoverageBuilder(Builder): attrs = [] + for attr_name in dir(obj): + attr = getattr(obj, attr_name) for attr_name, attr in inspect.getmembers( - obj, inspect.ismethod): + obj, lambda x: inspect.ismethod(x) or \ + inspect.isfunction(x)): if attr_name[0] == '_': # starts with an underscore, ignore it continue |