diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-02-21 14:26:22 +0100 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-02-21 15:36:16 +0100 |
commit | ee910755b90af58d6aa9b908b5afe4310c5b26db (patch) | |
tree | 347b74972f2b19ccab95a0bce5a70ffc35d41a2b /pylint/utils/utils.py | |
parent | 5bed07eba999130b6551acc7c43192d6a8eada43 (diff) | |
download | pylint-git-ee910755b90af58d6aa9b908b5afe4310c5b26db.tar.gz |
Migrate from % syntax or bad format() syntax to fstring
We can do that in python 3.6
Diffstat (limited to 'pylint/utils/utils.py')
-rw-r--r-- | pylint/utils/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pylint/utils/utils.py b/pylint/utils/utils.py index 0f4e0f518..981bfb91b 100644 --- a/pylint/utils/utils.py +++ b/pylint/utils/utils.py @@ -52,7 +52,7 @@ def get_module_and_frameid(node): def get_rst_title(title, character): """Permit to get a title formatted as ReStructuredText test (underlined with a chosen character).""" - return "{}\n{}\n".format(title, character * len(title)) + return f"{title}\n{character * len(title)}\n" def get_rst_section(section, options, doc=None): |