Skip to content

Commit

Permalink
add back in un_indexed_curly_braces_always_error using self.linter.co…
Browse files Browse the repository at this point in the history
…nfig.

- remove Py2 code check
  • Loading branch information
MaxBear authored and s0undt3ch committed Feb 1, 2024
1 parent bd7b6dc commit 605f19c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion saltpylint/strings.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def visit_call(self, node):
)

if BAD_FORMATTING_SLOT.findall(inferred.value):
if sys.version_info[:2] < (2, 7):
if self.linter.config.un_indexed_curly_braces_always_error:
self.add_message(
'E1320', node=inferred, args=inferred.value
)
Expand Down

0 comments on commit 605f19c

Please sign in to comment.