diff options
Diffstat (limited to 'pylint/checkers/spelling.py')
-rw-r--r-- | pylint/checkers/spelling.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pylint/checkers/spelling.py b/pylint/checkers/spelling.py index 3f32d4762..49c511990 100644 --- a/pylint/checkers/spelling.py +++ b/pylint/checkers/spelling.py @@ -314,7 +314,9 @@ class SpellingChecker(BaseTokenChecker): self.spelling_dict = enchant.DictWithPWL( dict_name, self.config.spelling_private_dict_file ) - self.private_dict_file = open(self.config.spelling_private_dict_file, "a") + self.private_dict_file = open( # pylint: disable=consider-using-with + self.config.spelling_private_dict_file, "a" + ) else: self.spelling_dict = enchant.Dict(dict_name) |