fnp
/
librarian.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
32177c1
)
use lists not tuples since tuples break things
author
Marcin Koziej
<marcin@lolownia.org>
Mon, 16 Dec 2013 08:40:49 +0000
(09:40 +0100)
committer
Marcin Koziej
<marcin@lolownia.org>
Mon, 16 Dec 2013 08:40:49 +0000
(09:40 +0100)
librarian/picture.py
patch
|
blob
|
history
diff --git
a/librarian/picture.py
b/librarian/picture.py
index
7b98ff1
..
5d644d7
100644
(file)
--- a/
librarian/picture.py
+++ b/
librarian/picture.py
@@
-156,7
+156,7
@@
class WLPicture(object):
area = sem.find("div[@type='rect']")
if area is None:
area = sem.find("div[@type='whole']")
- return
((0, 0), (-1, -1))
+ return
[[0, 0], [-1, -1]]
def has_all_props(node, props):
return reduce(and_, map(lambda prop: prop in node.attrib, props))
@@
-165,7
+165,7
@@
class WLPicture(object):
return None
def n(prop): return int(area.get(prop))
- return
((n('x1'), n('y1')), (n('x2'), n('y2')))
+ return
[[n('x1'), n('y1')], [n('x2'), n('y2')]]
def partiter(self):