summaryrefslogtreecommitdiff
path: root/coverage/files.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2014-11-25 06:54:16 -0500
committerNed Batchelder <ned@nedbatchelder.com>2014-11-25 06:54:16 -0500
commitffecec34be8052b091b5b31baa0a08e59bb0d07e (patch)
tree2d363da3f78a9b419a957ab6c18f1e1a1e2e7294 /coverage/files.py
parent478677345233a9f24b4fd0335d2094e91917e6eb (diff)
downloadpython-coveragepy-git-ffecec34be8052b091b5b31baa0a08e59bb0d07e.tar.gz
Remove unused .add methods, and show the source_pkg_match in the debug output
Diffstat (limited to 'coverage/files.py')
-rw-r--r--coverage/files.py11
1 files changed, 1 insertions, 10 deletions
diff --git a/coverage/files.py b/coverage/files.py
index 3a298867..7c82d5f7 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