提交 91e82991 编写于 作者: Q qiaolongfei

fake reader support python3.x test=develop

上级 92aff806
...@@ -533,7 +533,7 @@ class Fake(object): ...@@ -533,7 +533,7 @@ class Fake(object):
def __call__(self, reader, data_num): def __call__(self, reader, data_num):
def fake_reader(): def fake_reader():
if self.data is None: if self.data is None:
self.data = reader().next() self.data = next(reader())
while self.yield_num < data_num: while self.yield_num < data_num:
yield self.data yield self.data
self.yield_num += 1 self.yield_num += 1
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册