fix __next__ at stream.py

This commit is contained in:
Roman Zeyde
2014-08-24 19:25:54 +03:00
parent 4590a8de5c
commit 2da7b9ef01

View File

@@ -24,9 +24,6 @@ class Reader(object):
def __iter__(self):
return self
def __next__(self):
return self.next()
def next(self):
block = bytearray()
if self.eof:
@@ -55,3 +52,5 @@ class Reader(object):
time.sleep(self.wait)
raise Timeout(self.timeout)
__next__ = next