提交 e180a8d9 authored 作者: George Ho's avatar George Ho

Restore deleted code - cast Py3 strings to byte strings

上级 9860a99a
......@@ -1878,6 +1878,11 @@ class Compiler:
path = '"' + path + '"'
exe_path = '"' + exe_path + '"'
try:
# Python3 compatibility: try to cast Py3 strings as Py2 strings
try:
src_code = b(src_code)
except Exception:
pass
os.write(fd, src_code)
os.close(fd)
fd = None
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论