can't use map() for pure side effects in Python 3

pull/21/head
Hartmut Holzgraefe 2017-09-23 10:25:05 +00:00
rodzic e8f2faff6e
commit dbdf30c07b
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -64,7 +64,9 @@ class OverviewGrid:
# for the small imprecisions of re-projecting.
g = shapes.BoxShapeFile(self._bbox.create_expanded(0.001, 0.001),
filename, 'grid')
map(g.add_box, self._pages_bbox)
for box in self._pages_bbox:
g.add_box(box)
return g