Source

pygame / test / mask_test.py

Diff from to

test/mask_test.py

     """random_mask(size=(100,100)): return Mask
     Create a mask of the given size, with roughly half the bits set at random."""
     m = pygame.Mask(size)
-    for i in range(size[0] * size[1] / 2):
+    for i in range(size[0] * size[1] // 2):
         x, y = random.randint(0,size[0] - 1), random.randint(0, size[1] - 1)
         m.set_at((x,y))
     return m
         surf = pygame.Surface((70,70), SRCALPHA, 32)
         #surf = surf.convert_alpha()
         surf.set_at((0,0), (255,255,255,0))
-        print surf.get_at((0,0))
+        print (surf.get_at((0,0)))
 
-        print "asdf"
-        print surf
+        print ("asdf")
+        print (surf)