We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 04f1c30 commit 4445c25Copy full SHA for 4445c25
1 file changed
tools/generate.py
@@ -267,7 +267,7 @@ def generate_python_modules(
267
if dst.exists() and dst.read_text(encoding="utf-8") == new_content:
268
unchanged.append(dst)
269
else:
270
- dst.write_text(new_content, encoding="utf-8")
+ dst.write_bytes(new_content.encode())
271
updated.append(dst)
272
273
return updated, unchanged
@@ -301,7 +301,7 @@ def main() -> int:
301
if cdef_path.exists() and cdef_path.read_text(encoding="utf-8") == cdef_content:
302
print(f" - No changes to {cdef_path}", file=sys.stderr)
303
304
- cdef_path.write_text(cdef_content, encoding="utf-8")
+ cdef_path.write_bytes(cdef_content.encode())
305
print(f" - Updated {cdef_path}", file=sys.stderr)
306
307
print("Step 3: Generating Python modules...", file=sys.stderr)
0 commit comments