diff options
author | Buck Golemon <buck@yelp.com> | 2014-11-14 14:00:27 -0800 |
---|---|---|
committer | Buck Golemon <buck@yelp.com> | 2014-11-14 14:00:27 -0800 |
commit | f8b9153791455b6d09ec80d507c300f33b1da5a1 (patch) | |
tree | 5316cb85ff52e7ea14b059cd5b66c3b1d463fc19 /coverage/control.py | |
parent | 05be6e3d5fc76a403918ad47d9c083191f588f0f (diff) | |
download | python-coveragepy-f8b9153791455b6d09ec80d507c300f33b1da5a1.tar.gz |
ModuleFinder no longer takes a main-module argument.
Diffstat (limited to 'coverage/control.py')
-rw-r--r-- | coverage/control.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/coverage/control.py b/coverage/control.py index 5e15453..47e5b50 100644 --- a/coverage/control.py +++ b/coverage/control.py @@ -141,7 +141,7 @@ class Coverage(object): # Other instance attributes, set later. self.omit = self.include = self.source = None - self.not_imported = self.source_pkgs = self.file_locator = None + self.source_pkgs = self.file_locator = None self.data = self.collector = None self.plugins = self.file_tracers = None self.pylib_dirs = self.cover_dir = None @@ -426,8 +426,7 @@ class Coverage(object): # any canned exclusions. If they didn't, then we have to exclude the # stdlib and coverage.py directories. if self.source_match: - match = self.source_pkgs_match.match(modulename) - if match: + if self.source_pkgs_match.match(modulename): if modulename in self.not_imported: self.not_imported.remove(modulename) return None # There's no reason to skip this file. |