Commit 9588d6ca authored by Patrick Wieschollek's avatar Patrick Wieschollek Committed by Yuxin Wu

fix 261 (#262)

parent 0ada5796
......@@ -198,10 +198,10 @@ class FixedSizeData(ProxyDataFlow):
cnt = 0
while True:
try:
dp = self.itr.next()
dp = next(self.itr)
except StopIteration:
self.itr = self.ds.get_data()
dp = self.itr.next()
dp = next(self.itr)
cnt += 1
yield dp
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment