From 335e87c11f636c89fe545b6e7026c4771ab8c79e Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sat, 27 Dec 2014 20:06:15 -0500 Subject: Refactor some of the encoding detection --- coverage/files.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'coverage/files.py') diff --git a/coverage/files.py b/coverage/files.py index c66327d..7f2431d 100644 --- a/coverage/files.py +++ b/coverage/files.py @@ -77,9 +77,7 @@ def get_python_source(filename): return source # Couldn't find source. - raise NoSource( - "No source for code: '%s'." % filename - ) + raise NoSource("No source for code: %r." % filename) def get_zip_bytes(filename): -- cgit v1.2.1