summaryrefslogtreecommitdiff
path: root/coverage/files.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2014-12-28 15:40:13 -0500
committerNed Batchelder <ned@nedbatchelder.com>2014-12-28 15:40:13 -0500
commitae3dd61e2f0829d08d35b419b38381b71fe5de6d (patch)
tree63f9488b51262ce9e2518d96eb78ff62519f218f /coverage/files.py
parentc2243b66915b58541ed88b953fe95a496385ed2b (diff)
downloadpython-coveragepy-git-ae3dd61e2f0829d08d35b419b38381b71fe5de6d.tar.gz
Don't use %r for filenames, on windows, the backslashes go nuts.
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 8fa8067f..9f0827fa 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':