From 624ef0d0662d27fc3c95b2820c98bad5d69f2270 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sat, 15 Aug 2015 06:47:37 -0400 Subject: Use ntpath so Windows file manipulation can be tested the same everywhere. --- coverage/files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'coverage/files.py') diff --git a/coverage/files.py b/coverage/files.py index d2742a39..1b6f6281 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) -- cgit v1.2.1