X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=wrw%2Fdispatch.py;fp=wrw%2Fdispatch.py;h=709cfe4e18dedad2921de5e7390e4a601c313f29;hb=6cf09c7658532e0bdaa1eeb5414a3de129bd0b40;hp=50adc040d8e85dc0f0c90d4ed98148651b21f3d9;hpb=d13a1a574515e4c4a40ed0090c8c684cc9e523f2;p=wrw.git diff --git a/wrw/dispatch.py b/wrw/dispatch.py index 50adc04..709cfe4 100644 --- a/wrw/dispatch.py +++ b/wrw/dispatch.py @@ -20,17 +20,17 @@ class iterproxy(object): self.bk = real self.bki = iter(real) self._next = [None] - self.next() + self.__next__() def __iter__(self): return self - def next(self): + def __next__(self): if self._next is None: raise StopIteration() ret = self._next[0] try: - self._next[:] = [self.bki.next()] + self._next[:] = [self.bki.__next__()] except StopIteration: self._next = None return ret