web/captcha.py
branchstable
changeset 4722 9c13d5db03d9
parent 4621 fe1c5a46a1cb
child 5037 7778a2bbdf9d
--- a/web/captcha.py	Fri Feb 26 13:24:47 2010 +0100
+++ b/web/captcha.py	Fri Feb 26 13:30:24 2010 +0100
@@ -38,7 +38,7 @@
     draw = ImageDraw.Draw(img)
     # draw 100 random colored boxes on the background
     x, y = img.size
-    for num in range(100):
+    for num in xrange(100):
         draw.rectangle((randint(0, x), randint(0, y),
                         randint(0, x), randint(0, y)),
                        fill=randint(0, 0xffffff))