Skip to content

Commit 4a4798e

Browse files
committed
Specify encoding for open()
According to PEP 597 using open() is not recommended and pylint shows a warning for this.
1 parent 3d228d4 commit 4a4798e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

simpleline/render/adv_widgets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def refresh(self, args=None):
173173
help_message = _("The help is not available.")
174174

175175
if self.help_path:
176-
with open(self.help_path, 'r') as f:
176+
with open(self.help_path, 'r', encoding='utf-8') as f:
177177
help_message = f.read()
178178

179179
self.window.add_with_separator(widgets.TextWidget(help_message))

0 commit comments

Comments
 (0)