Skip to content

Commit

Permalink
Set another open dialog with encoding utf8 to try to fix errors on Wi…
Browse files Browse the repository at this point in the history
…ndows
  • Loading branch information
m-rossi committed Feb 14, 2024
1 parent bb6d65e commit 511f6de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sphinx_automodapi/automodsumm.py
Expand Up @@ -291,7 +291,7 @@ def process_automodsumm_generation(app):
if app.config.automodsumm_writereprocessed:
if lines: # empty list means no automodsumm entry is in the file
outfn = os.path.join(app.srcdir, sfn) + '.automodsumm'
with open(outfn, 'w') as f:
with open(outfn, 'w', encoding='utf8') as f:
for l in lines: # noqa: E741
f.write(l)
f.write('\n')
Expand Down

0 comments on commit 511f6de

Please sign in to comment.