diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2018-01-22 20:36:11 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2018-01-22 20:36:11 -0500 |
commit | 8718508cf15d9a2eb1f697d14aec0c8d558d44b3 (patch) | |
tree | 51e24898ca271647eca8818d14b54f7c3f1d1148 /coverage/files.py | |
parent | e7a7b13fde81be114a8b6bba9483ba0fbdea729d (diff) | |
download | python-coveragepy-8718508cf15d9a2eb1f697d14aec0c8d558d44b3.tar.gz |
Ensure mapped paths use the separator of the result. #618
Diffstat (limited to 'coverage/files.py')
-rw-r--r-- | coverage/files.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/coverage/files.py b/coverage/files.py index 12b89e8..e746c3b 100644 --- a/coverage/files.py +++ b/coverage/files.py @@ -381,8 +381,7 @@ class PathAliases(object): m = regex.match(path) if m: new = path.replace(m.group(0), result) - if pattern_sep != result_sep: - new = new.replace(pattern_sep, result_sep) + new = new.replace(sep(path), result_sep) new = canonical_filename(new) return new return path |