From 1b94835aac3268a32bfa4ce0df585dbb97457a06 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Thu, 11 Nov 2021 07:23:36 -0500 Subject: style: convert more string formatting to f-strings --- coverage/execfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'coverage/execfile.py') diff --git a/coverage/execfile.py b/coverage/execfile.py index 3da3ba1f..38dc1d07 100644 --- a/coverage/execfile.py +++ b/coverage/execfile.py @@ -144,7 +144,7 @@ class PyRunner: self.arg0 = try_filename break else: - raise NoSource("Can't find '__main__' module in '%s'" % self.arg0) + raise NoSource(f"Can't find '__main__' module in '{self.arg0}'") # Make a spec. I don't know if this is the right way to do it. try_filename = python_reported_file(try_filename) -- cgit v1.2.1