aboutsummaryrefslogtreecommitdiffstats
path: root/backend/zmusic/streams.py
diff options
context:
space:
mode:
Diffstat (limited to 'backend/zmusic/streams.py')
-rw-r--r--backend/zmusic/streams.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/zmusic/streams.py b/backend/zmusic/streams.py
index 3dca20d..c654155 100644
--- a/backend/zmusic/streams.py
+++ b/backend/zmusic/streams.py
@@ -20,7 +20,7 @@ class ProcessWrapper(object):
return self
def __del__(self):
self.close()
- def next(self):
+ def __next__(self):
try:
data = self.process.stdout.read(self.buffer_size)
except:
@@ -52,7 +52,7 @@ class PartialFileWrapper(object):
self.file.close()
def __iter__(self):
return self
- def next(self):
+ def __next__(self):
if self.length is not None:
if self.length <= 0:
raise StopIteration()