Skip to content

Commit 511f6de

Browse files
committed
Set another open dialog with encoding utf8 to try to fix errors on Windows
1 parent bb6d65e commit 511f6de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sphinx_automodapi/automodsumm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ def process_automodsumm_generation(app):
291291
if app.config.automodsumm_writereprocessed:
292292
if lines: # empty list means no automodsumm entry is in the file
293293
outfn = os.path.join(app.srcdir, sfn) + '.automodsumm'
294-
with open(outfn, 'w') as f:
294+
with open(outfn, 'w', encoding='utf8') as f:
295295
for l in lines: # noqa: E741
296296
f.write(l)
297297
f.write('\n')

0 commit comments

Comments
 (0)