diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2015-01-24 22:21:21 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-01-24 22:21:21 -0500 |
commit | 16682db69e225ab7d8c321fc2ae99ec690675dc6 (patch) | |
tree | 9322a0567b4f8edd476ea34ce3f8402bf5f5a952 /coverage/codeunit.py | |
parent | 7d0d15ac432748c82e4de77ac36ccd711c608d46 (diff) | |
download | python-coveragepy-16682db69e225ab7d8c321fc2ae99ec690675dc6.tar.gz |
Move flat_rootname to the base class
Diffstat (limited to 'coverage/codeunit.py')
-rw-r--r-- | coverage/codeunit.py | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/coverage/codeunit.py b/coverage/codeunit.py index 5e8712d..ef7e848 100644 --- a/coverage/codeunit.py +++ b/coverage/codeunit.py @@ -36,16 +36,3 @@ class CodeUnit(FileReporter): def _adjust_filename(self, f): # TODO: This shouldn't be in the base class, right? return f - - def flat_rootname(self): - """A base for a flat filename to correspond to this code unit. - - 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' - - """ - root = os.path.splitdrive(self.name)[1] - return root.replace('\\', '_').replace('/', '_').replace('.', '_') |