X-Git-Url: http://dolda2000.com/gitweb/?a=blobdiff_plain;f=manga%2Flib.py;h=da64e0c1a0e4ee56d7b632d6d2170e0c59ae5dce;hb=631da77ffb787187f8c2d8cf407616dfc8c95cda;hp=54bcb77efcee831379ba09e03a5319638feb4ea4;hpb=8169dc6b6ae6fa6b9c1de5272b507871695114f0;p=automanga.git diff --git a/manga/lib.py b/manga/lib.py index 54bcb77..da64e0c 100644 --- a/manga/lib.py +++ b/manga/lib.py @@ -214,7 +214,14 @@ class cursor(object): raise StopIteration() def __iter__(self): - return self + def iterator(): + yield self.cur + while True: + try: + yield self.next() + except StopIteration: + break + return iterator() loaded = {} def findlib(name):