diff options
Diffstat (limited to 'wsgitools/filters.py')
-rw-r--r-- | wsgitools/filters.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/wsgitools/filters.py b/wsgitools/filters.py index 4c7ff20..4305c9d 100644 --- a/wsgitools/filters.py +++ b/wsgitools/filters.py @@ -35,7 +35,7 @@ class CloseableIterator: @rtype: gen() """ return self - def next(self): + def __next__(self): """iterator interface""" if not self.iterators: raise StopIteration @@ -44,6 +44,8 @@ class CloseableIterator: except StopIteration: self.iterators.pop(0) return next(self) + def next(self): + return self.__next__() __all__.append("CloseableList") class CloseableList(list): |