Mercurial > public > mercurial-scm > hg-stable
diff contrib/benchmarks/__init__.py @ 52680:5027ae0d89b3
pyupgrade: convert `str.format()` to f-strings
This is part of the `_fix_tokens()` changes made by `pyupgrade` once py36 is the
minimum.
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Mon, 06 Jan 2025 01:44:46 -0500 |
parents | dc36535a5edc |
children |
line wrap: on
line diff
--- a/contrib/benchmarks/__init__.py Tue Jan 07 16:46:21 2025 -0500 +++ b/contrib/benchmarks/__init__.py Mon Jan 06 01:44:46 2025 -0500 @@ -77,7 +77,7 @@ output = ui.popbuffer() match = outputre.search(output) if not match: - raise ValueError("Invalid output {}".format(output)) + raise ValueError(f"Invalid output {output}") return float(match.group(1))