diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2022-11-07 10:20:11 +0100 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2023-05-03 22:01:26 +0200 |
commit | dbe9f88189d57530e2383f3127045ba29a678e8b (patch) | |
tree | 0621faffd65ce0efb79e1507117054da569a8564 /pylint/checkers/refactoring | |
parent | c9912fd5614b259a6ebfb08e5a611e6f11061e00 (diff) | |
download | pylint-git-dbe9f88189d57530e2383f3127045ba29a678e8b.tar.gz |
Switch from ' to " in use-implicit-booleaness-not-comparison
Because empty string needs to " because node.as_string() use
simple quote.
Diffstat (limited to 'pylint/checkers/refactoring')
-rw-r--r-- | pylint/checkers/refactoring/implicit_booleaness_checker.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pylint/checkers/refactoring/implicit_booleaness_checker.py b/pylint/checkers/refactoring/implicit_booleaness_checker.py index 93ac44269..3f7bddb1b 100644 --- a/pylint/checkers/refactoring/implicit_booleaness_checker.py +++ b/pylint/checkers/refactoring/implicit_booleaness_checker.py @@ -74,7 +74,7 @@ class ImplicitBooleanessChecker(checkers.BaseChecker): {"old_names": [("C1801", "len-as-condition")]}, ), "C1803": ( - "'%s' can be simplified to '%s' as an empty %s is falsey", + '"%s" can be simplified to "%s" as an empty %s is falsey', "use-implicit-booleaness-not-comparison", "Used when Pylint detects that collection literal comparison is being " "used to check for emptiness; Use implicit booleaness instead " |