From 6a0fabc6472f49621260de215f128a31ae70219b Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Thu, 4 Mar 2021 17:16:11 -0500 Subject: mass rewrite of string formatting to use f-strings everywhere performed by running "pyupgrade --py36-plus" and committing the results --- test cases/python/2 extmodule/blaster.py | 2 +- test cases/python/4 custom target depends extmodule/blaster.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'test cases/python') diff --git a/test cases/python/2 extmodule/blaster.py b/test cases/python/2 extmodule/blaster.py index 1f0187645..aaac9849d 100755 --- a/test cases/python/2 extmodule/blaster.py +++ b/test cases/python/2 extmodule/blaster.py @@ -8,4 +8,4 @@ if not isinstance(result, int): raise SystemExit('Returned result not an integer.') if result != 1: - raise SystemExit('Returned result {} is not 1.'.format(result)) + raise SystemExit(f'Returned result {result} is not 1.') diff --git a/test cases/python/4 custom target depends extmodule/blaster.py b/test cases/python/4 custom target depends extmodule/blaster.py index 09039cbc9..61b11f922 100644 --- a/test cases/python/4 custom target depends extmodule/blaster.py +++ b/test cases/python/4 custom target depends extmodule/blaster.py @@ -27,4 +27,4 @@ if not isinstance(result, int): raise SystemExit('Returned result not an integer.') if result != 1: - raise SystemExit('Returned result {} is not 1.'.format(result)) + raise SystemExit(f'Returned result {result} is not 1.') -- cgit v1.2.3