diff options
| author | Ned Batchelder <ned@nedbatchelder.com> | 2014-11-25 06:54:16 -0500 |
|---|---|---|
| committer | Ned Batchelder <ned@nedbatchelder.com> | 2014-11-25 06:54:16 -0500 |
| commit | fb2fb6a91559f1f4b682b34d12f750ec20aa7fce (patch) | |
| tree | f517f3496d38439b14ea89227e3faae283044adc /coverage | |
| parent | eca79995a80b5b4111eafb74e25fc8071e70d2ac (diff) | |
| download | python-coveragepy-fb2fb6a91559f1f4b682b34d12f750ec20aa7fce.tar.gz | |
Remove unused .add methods, and show the source_pkg_match in the debug output
Diffstat (limited to 'coverage')
| -rw-r--r-- | coverage/control.py | 2 | ||||
| -rw-r--r-- | coverage/files.py | 11 |
2 files changed, 3 insertions, 10 deletions
diff --git a/coverage/control.py b/coverage/control.py index bcb1823..bf96bd7 100644 --- a/coverage/control.py +++ b/coverage/control.py @@ -905,6 +905,8 @@ class Coverage(object): ] if self.source_match: info.append(('source_match', self.source_match.info())) + if self.source_pkgs_match: + info.append(('source_pkgs_match', self.source_pkgs_match.info())) if self.include_match: info.append(('include_match', self.include_match.info())) if self.omit_match: diff --git a/coverage/files.py b/coverage/files.py index 3a29886..7c82d5f 100644 --- a/coverage/files.py +++ b/coverage/files.py @@ -156,10 +156,6 @@ class TreeMatcher(object): """A list of strings for displaying when dumping state.""" return self.dirs - def add(self, directory): - """Add another directory to the list we match for.""" - self.dirs.append(directory) - def match(self, fpath): """Does `fpath` indicate a file in one of our trees?""" for d in self.dirs: @@ -185,13 +181,8 @@ class ModuleMatcher(object): """A list of strings for displaying when dumping state.""" return self.modules - def add(self, module): - """Add another directory to the list we match for.""" - self.modules.append(module) - def match(self, module_name): - """Does `module_name` indicate a module in one of our packages? - """ + """Does `module_name` indicate a module in one of our packages?""" if not module_name: return False |
