@@ -199,9 +199,9 @@ Chances are, if you're reading this you probably like XKCD. So, let's make the m
199199 codes = []
200200
201201 # loop over horizontals
202- for r,rr in enumerate(xrange(1 , H, 2)):
202+ for r,rr in enumerate(range1 , H, 2)):
203203 run = []
204- for c,cc in enumerate(xrange (1, W, 2)):
204+ for c,cc in enumerate(range (1, W, 2)):
205205 if grid[rr-1,cc]:
206206 if not run:
207207 run = [(r,c)]
@@ -213,7 +213,7 @@ Chances are, if you're reading this you probably like XKCD. So, let's make the m
213213
214214 # grab bottom side of last row
215215 run = []
216- for c,cc in enumerate(xrange (1, W, 2)):
216+ for c,cc in enumerate(range (1, W, 2)):
217217 if grid[H-1,cc]:
218218 if not run:
219219 run = [(H//2,c)]
@@ -224,9 +224,9 @@ Chances are, if you're reading this you probably like XKCD. So, let's make the m
224224 use_run(codes, vertices, run)
225225
226226 # loop over verticles
227- for c,cc in enumerate(xrange (1, W, 2)):
227+ for c,cc in enumerate(range (1, W, 2)):
228228 run = []
229- for r,rr in enumerate(xrange (1, H, 2)):
229+ for r,rr in enumerate(range (1, H, 2)):
230230 if grid[rr,cc-1]:
231231 if not run:
232232 run = [(r,c)]
@@ -238,7 +238,7 @@ Chances are, if you're reading this you probably like XKCD. So, let's make the m
238238
239239 # grab far right column
240240 run = []
241- for r,rr in enumerate(xrange (1, H, 2)):
241+ for r,rr in enumerate(range (1, H, 2)):
242242 if grid[rr,W-1]:
243243 if not run:
244244 run = [(r,W//2)]
0 commit comments