From e5bb8fcdbfd5463ca93e290a5d1a7f6213dcc897 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 28 Dec 2014 15:40:13 -0500 Subject: Don't use %r for filenames, on windows, the backslashes go nuts. --- 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 8fa8067..9f0827f 100644 --- a/coverage/files.py +++ b/coverage/files.py @@ -95,7 +95,7 @@ def get_python_source(filename): break else: # Couldn't find source. - raise NoSource("No source for code: %r." % filename) + raise NoSource("No source for code: '%s'." % filename) # Python code should always end with a line with a newline. if source and source[-1] != '\n': -- cgit v1.2.1