Dolda2000 GitWeb
/
automanga.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added a simple copy function for cursors.
[automanga.git]
/
manga
/
lib.py
diff --git
a/manga/lib.py
b/manga/lib.py
index
52f75ea
..
e7c531c
100644
(file)
--- a/
manga/lib.py
+++ b/
manga/lib.py
@@
-134,7
+134,10
@@
class imgstream(object):
class cursor(object):
def __init__(self, ob):
class cursor(object):
def __init__(self, ob):
- self.cur = self.descend(ob)
+ if isinstance(ob, cursor):
+ self.cur = ob.cur
+ else:
+ self.cur = self.descend(ob)
def descend(self, ob):
while isinstance(ob, pagelist):
def descend(self, ob):
while isinstance(ob, pagelist):