Skip to content

Commit

Permalink
Merge pull request #410 from MAKOMO/master
Browse files Browse the repository at this point in the history
typo in NamedTemporaryFile
  • Loading branch information
ronaldoussoren committed Apr 8, 2022
2 parents 6d7460a + 942763a commit b13efa7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion py2app/util.py
Expand Up @@ -393,7 +393,8 @@ def byte_compile(
if verbose:
print("writing byte-compilation script")
if not dry_run:
with NamedTemporaryFile(sufix=".py", delete=False) as script:
with NamedTemporaryFile(suffix=".py", delete=False, mode="w",
encoding="utf-8") as script:
script_name = script.name
script.write(
"""
Expand Down

0 comments on commit b13efa7

Please sign in to comment.