From a345c26c87af29a3a8f90de7f0f94e8394fb4cce Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Fri, 23 Nov 2012 22:19:30 -0500 Subject: Messages with filenames are not good as %r, because it doubles the backslashes... --- coverage/results.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'coverage/results.py') diff --git a/coverage/results.py b/coverage/results.py index ae22e1c3..77ff2a2d 100644 --- a/coverage/results.py +++ b/coverage/results.py @@ -21,7 +21,7 @@ class Analysis(object): if not os.path.exists(self.filename): source = self.coverage.file_locator.get_zip_data(self.filename) if not source: - raise NoSource("No source for code: %r" % self.filename) + raise NoSource("No source for code: '%s'" % self.filename) self.parser = CodeParser( text=source, filename=self.filename, -- cgit v1.2.1