Skip to content

Commit eae7acc

Browse files
committed
Change next call to __nex__
1 parent fa46f1d commit eae7acc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

riak/transports/http/stream.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ class HttpMapReduceStream(HttpMultipartStream):
141141
"""
142142

143143
def __next__(self):
144-
message = next(super(HttpMapReduceStream, self))
144+
message = super(HttpMapReduceStream, self).__next__()
145145
payload = json.loads(message.get_payload())
146146
return payload["phase"], payload["data"]
147147

@@ -157,7 +157,7 @@ def __init__(self, response, index, return_terms):
157157
self.return_terms = return_terms
158158

159159
def __next__(self):
160-
message = next(super(HttpIndexStream, self))
160+
message = super(HttpIndexStream, self).__next__()
161161
payload = json.loads(message.get_payload())
162162
if "error" in payload:
163163
raise RiakError(payload["error"])

0 commit comments

Comments
 (0)