diff options
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 |