Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d424304 commit 0268841Copy full SHA for 0268841
1 file changed
examples/units/basic_units.py
@@ -158,12 +158,10 @@ class IteratorProxy(object):
158
def __init__(self, iter, unit):
159
self.iter = iter
160
self.unit = unit
161
- def next(self):
162
- value = self.iter.next()
163
- return TaggedValue(value, self.unit)
164
def __next__(self):
165
value = next(self.iter)
166
return TaggedValue(value, self.unit)
+ next = __next__ # for Python 2
167
return IteratorProxy(iter(self.value), self.unit)
168
169
def get_compressed_copy(self, mask):
0 commit comments