Commits

Sergey Astanin committed be4f552

imap instead of map

Comments (0)

Files changed (1)

     w, h = im.size
     for i in xrange(x1p,x2p+1):
         js = xrange(y1p,y2p-1,-1)
-        pixels = map(lambda j: (j, im.getpixel((i,j))), js)
+        pixels = imap(lambda j: (j, im.getpixel((i,j))), js)
 
         def similar(px):
             j, c = px