X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/716a9ab552bffbb7df2cb31ae41ee196902c7653..67a177f2ec1fa2eac56e7fb07ccaf32bcd33d8ce:/src/librarian/picture.py?ds=sidebyside diff --git a/src/librarian/picture.py b/src/librarian/picture.py index eeb8e8e..93d8cb9 100644 --- a/src/librarian/picture.py +++ b/src/librarian/picture.py @@ -181,7 +181,9 @@ class WLPicture(object): return [[0, 0], [-1, -1]] def has_all_props(node, props): - return reduce(and_, map(lambda prop: prop in node.attrib, props)) + return six.moves.reduce( + and_, map(lambda prop: prop in node.attrib, props) + ) if not has_all_props(area, ['x1', 'x2', 'y1', 'y2']): return None