summaryrefslogtreecommitdiff
path: root/coverage/files.py
diff options
context:
space:
mode:
Diffstat (limited to 'coverage/files.py')
-rw-r--r--coverage/files.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/coverage/files.py b/coverage/files.py
index d2742a3..1b6f628 100644
--- a/coverage/files.py
+++ b/coverage/files.py
@@ -77,7 +77,7 @@ def flat_rootname(filename):
For example, the file a/b/c.py will return 'a_b_c_py'
"""
- name = os.path.splitdrive(filename)[1]
+ name = ntpath.splitdrive(filename)[1]
return re.sub(r"[\\/.:]", "_", name)