summaryrefslogtreecommitdiff
path: root/pylint/checkers/strings.py
diff options
context:
space:
mode:
Diffstat (limited to 'pylint/checkers/strings.py')
-rw-r--r--pylint/checkers/strings.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/pylint/checkers/strings.py b/pylint/checkers/strings.py
index abdf2e8ef..c5594b61c 100644
--- a/pylint/checkers/strings.py
+++ b/pylint/checkers/strings.py
@@ -238,9 +238,12 @@ class StringFormatChecker(BaseChecker):
return
format_string = left.value
try:
- required_keys, required_num_args, required_key_types, required_arg_types = utils.parse_format_string(
- format_string
- )
+ (
+ required_keys,
+ required_num_args,
+ required_key_types,
+ required_arg_types,
+ ) = utils.parse_format_string(format_string)
except utils.UnsupportedFormatCharacter as exc:
formatted = format_string[exc.index]
self.add_message(