summaryrefslogtreecommitdiff
path: root/coverage/plugin.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-08-09 09:48:51 -0400
committerNed Batchelder <ned@nedbatchelder.com>2015-08-09 09:48:51 -0400
commitd7f2c64b7071d20378d6864cc4ec1c1c83b09175 (patch)
tree4b8733ebe02d867252b097ea443ebdce7eb26215 /coverage/plugin.py
parent3cc5b11a413426b07a51e86eab20a7e9ebab4f2d (diff)
downloadpython-coveragepy-git-d7f2c64b7071d20378d6864cc4ec1c1c83b09175.tar.gz
Move flat_rootname from FileReporter to a utility function.
Diffstat (limited to 'coverage/plugin.py')
-rw-r--r--coverage/plugin.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/coverage/plugin.py b/coverage/plugin.py
index f4182b0f..8cd6dd3f 100644
--- a/coverage/plugin.py
+++ b/coverage/plugin.py
@@ -3,9 +3,6 @@
"""Plugin interfaces for coverage.py"""
-import os
-import re
-
from coverage import files
from coverage.misc import _needs_to_implement
@@ -226,18 +223,3 @@ class FileReporter(object):
place.
"""
return False
-
- def flat_rootname(self):
- """A base for a flat filename to correspond to this file.
-
- Useful for writing files about the code where you want all the files in
- the same directory, but need to differentiate same-named files from
- different directories.
-
- For example, the file a/b/c.py will return 'a_b_c_py'
-
- You should not need to override this method.
-
- """
- name = os.path.splitdrive(self.relative_filename())[1]
- return re.sub(r"[\\/.:]", "_", name)