Skip to content

Commit

Permalink
Merge pull request #909.
Browse files Browse the repository at this point in the history
make the check_header.py work in both python 2/3
  • Loading branch information
lballabio committed Oct 30, 2020
2 parents 2daf3f8 + 3af0627 commit cbf2acd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/check_header.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
)

fd, fname = tempfile.mkstemp(suffix=".cpp", dir=".", text=True)
os.write(fd, main)
os.write(fd, bytes(str(main).encode("utf-8")))
os.close(fd)

print("Checking %s" % header)
Expand Down

0 comments on commit cbf2acd

Please sign in to comment.