未验证 提交 b84fa019 编写于 作者: D dyning 提交者: GitHub

Merge pull request #78 from WuHaobo/py_3

be compatible with Python3
...@@ -85,7 +85,7 @@ def create_operators(): ...@@ -85,7 +85,7 @@ def create_operators():
def preprocess(fname, ops): def preprocess(fname, ops):
data = open(fname).read() data = open(fname, 'rb').read()
for op in ops: for op in ops:
data = op(data) data = op(data)
......
...@@ -67,7 +67,7 @@ def create_operators(): ...@@ -67,7 +67,7 @@ def create_operators():
def preprocess(fname, ops): def preprocess(fname, ops):
data = open(fname).read() data = open(fname, 'rb').read()
for op in ops: for op in ops:
data = op(data) data = op(data)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册