summaryrefslogtreecommitdiff
path: root/doc/docgen.py
diff options
context:
space:
mode:
Diffstat (limited to 'doc/docgen.py')
-rw-r--r--doc/docgen.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/docgen.py b/doc/docgen.py
index 1c0a09663..0589395f2 100644
--- a/doc/docgen.py
+++ b/doc/docgen.py
@@ -487,7 +487,8 @@ class AutogenDoc():
f'autogen_{name}.{self.locale[:2]}.adoc',
)
self.filename_tmp = f'{self.filename}.tmp'
- self._file = open(self.filename_tmp, 'w')
+ # pylint: disable=consider-using-with
+ self._file = open(self.filename_tmp, 'w', encoding='utf-8')
def write_autogen_files(self, weechat_doc):
"""Write auto-generated files."""