Skip to content

Commit ee42aa3

Browse files
committed
encode the output license.
1 parent c9909d9 commit ee42aa3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

about_code_tool/genabout.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ def write_licenses(self, license_context_list):
275275
for gen_license_path, license_context in license_context_list:
276276
try:
277277
with open(gen_license_path, 'wb') as output:
278-
output.write(license_context)
278+
output.write(license_context.encode('utf8'))
279279
except Exception:
280280
self.errors.append(Error('Unknown', gen_license_path, "Something is wrong."))
281281

0 commit comments

Comments
 (0)