We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd9342d commit 9a5dec4Copy full SHA for 9a5dec4
Tools/freeze/test/freeze.py
@@ -89,7 +89,7 @@ def get_makefile_var(builddir, name):
89
regex = re.compile(rf'^{name} *=\s*(.*?)\s*$')
90
filename = os.path.join(builddir, 'Makefile')
91
try:
92
- infile = open(filename)
+ infile = open(filename, encoding='utf-8')
93
except FileNotFoundError:
94
return None
95
with infile:
@@ -125,7 +125,7 @@ def prepare(script=None, outdir=None):
125
if script:
126
scriptfile = os.path.join(outdir, 'app.py')
127
print(f'creating the script to be frozen at {scriptfile}')
128
- with open(scriptfile, 'w') as outfile:
+ with open(scriptfile, 'w', encoding='utf-8') as outfile:
129
outfile.write(script)
130
131
# Make a copy of the repo to avoid affecting the current build
0 commit comments