Dolda2000 GitWeb
/
automanga.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6fab7b5
)
Added a simple copy function for cursors.
author
Fredrik Tolf
<fredrik@dolda2000.com>
Sun, 5 May 2013 00:13:19 +0000
(
02:13
+0200)
committer
Fredrik Tolf
<fredrik@dolda2000.com>
Sun, 5 May 2013 00:13:19 +0000
(
02:13
+0200)
manga/lib.py
patch
|
blob
|
blame
|
history
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):
- 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):