summaryrefslogtreecommitdiff
path: root/coverage/collector.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2021-05-02 18:35:41 -0400
committerNed Batchelder <ned@nedbatchelder.com>2021-05-02 18:35:41 -0400
commitbb73791b59f74b6621a87036c14a6be6a23e0e55 (patch)
treea99329d767e299b9e1ceb211cb74d7c4262311a3 /coverage/collector.py
parentb74461aef05559e17da555c20f4ce63c610e9307 (diff)
downloadpython-coveragepy-git-bb73791b59f74b6621a87036c14a6be6a23e0e55.tar.gz
refactor: convert more %-formatting to f-strings
Diffstat (limited to 'coverage/collector.py')
-rw-r--r--coverage/collector.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/coverage/collector.py b/coverage/collector.py
index e219c928..f9e9d14f 100644
--- a/coverage/collector.py
+++ b/coverage/collector.py
@@ -116,7 +116,7 @@ class Collector:
# We can handle a few concurrency options here, but only one at a time.
these_concurrencies = self.SUPPORTED_CONCURRENCIES.intersection(concurrency)
if len(these_concurrencies) > 1:
- raise CoverageException("Conflicting concurrency settings: %s" % concurrency)
+ raise CoverageException(f"Conflicting concurrency settings: {concurrency}")
self.concurrency = these_concurrencies.pop() if these_concurrencies else ''
try:
@@ -136,7 +136,7 @@ class Collector:
import threading
self.threading = threading
else:
- raise CoverageException("Don't understand concurrency=%s" % concurrency)
+ raise CoverageException(f"Don't understand concurrency={concurrency}")
except ImportError:
raise CoverageException(
"Couldn't trace with concurrency={}, the module isn't installed.".format(