diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-02-21 13:27:11 +0100 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-02-21 15:36:16 +0100 |
commit | 5bed07eba999130b6551acc7c43192d6a8eada43 (patch) | |
tree | 09e3a11503bd074363556e8a5fd33fc0e8db7fc4 /tests/test_func.py | |
parent | a1e553d3bb07c56ca99c31279f9af104bede0a32 (diff) | |
download | pylint-git-5bed07eba999130b6551acc7c43192d6a8eada43.tar.gz |
Move from % string formatting syntax to f-string or .format()
Diffstat (limited to 'tests/test_func.py')
-rw-r--r-- | tests/test_func.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_func.py b/tests/test_func.py index e10aa4fa7..4670274c6 100644 --- a/tests/test_func.py +++ b/tests/test_func.py @@ -38,7 +38,7 @@ INFO_TEST_RGX = re.compile(r"^func_i\d\d\d\d$") def exception_str(self, ex): # pylint: disable=unused-argument """function used to replace default __str__ method of exception instances""" - return "in %s\n:: %s" % (ex.file, ", ".join(ex.args)) + return "in {}\n:: {}".format(ex.file, ", ".join(ex.args)) class LintTestUsingModule: |