Dolda2000 GitWeb
/
automanga.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Delete getmanga output files that aren't properly completed.
[automanga.git]
/
manga
/
lib.py
diff --git
a/manga/lib.py
b/manga/lib.py
index
54bcb77
..
da64e0c
100644
(file)
--- 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):