summaryrefslogtreecommitdiff
path: root/pylint/checkers/spelling.py
diff options
context:
space:
mode:
Diffstat (limited to 'pylint/checkers/spelling.py')
-rw-r--r--pylint/checkers/spelling.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pylint/checkers/spelling.py b/pylint/checkers/spelling.py
index e2b6df189..1b0a7f653 100644
--- a/pylint/checkers/spelling.py
+++ b/pylint/checkers/spelling.py
@@ -318,7 +318,7 @@ class SpellingChecker(BaseTokenChecker):
dict_name, self.config.spelling_private_dict_file
)
self.private_dict_file = open( # pylint: disable=consider-using-with
- self.config.spelling_private_dict_file, "a"
+ self.config.spelling_private_dict_file, "a", encoding="utf-8"
)
else:
self.spelling_dict = enchant.Dict(dict_name)