From e9a2a1018349f3eda9811bcadb63d4e2af05fd2f Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Mon, 29 Mar 2021 20:00:59 -0700 Subject: audit % format calls --- src/flake8/plugins/manager.py | 6 +++--- src/flake8/plugins/pyflakes.py | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src/flake8/plugins') diff --git a/src/flake8/plugins/manager.py b/src/flake8/plugins/manager.py index d36f95b..a7f285a 100644 --- a/src/flake8/plugins/manager.py +++ b/src/flake8/plugins/manager.py @@ -138,9 +138,9 @@ class Plugin: self._plugin = self.entry_point.load() if not callable(self._plugin): msg = ( - "Plugin %r is not a callable. It might be written for an" - " older version of flake8 and might not work with this" - " version" % self._plugin + f"Plugin {self._plugin!r} is not a callable. It might be " + f"written for an older version of flake8 and might not work " + f"with this version" ) LOG.critical(msg) raise TypeError(msg) diff --git a/src/flake8/plugins/pyflakes.py b/src/flake8/plugins/pyflakes.py index 9709887..8c68a01 100644 --- a/src/flake8/plugins/pyflakes.py +++ b/src/flake8/plugins/pyflakes.py @@ -165,10 +165,10 @@ class FlakesChecker(pyflakes.checker.Checker): ) if inc_exc: raise ValueError( - '"%s" was specified in both the ' - "include-in-doctest and exclude-from-doctest " - "options. You are not allowed to specify it in " - "both for doctesting." % inc_exc + f"{inc_exc!r} was specified in both the " + f"include-in-doctest and exclude-from-doctest " + f"options. You are not allowed to specify it in " + f"both for doctesting." ) def run(self): -- cgit v1.2.1