1. pygame
  2. Untitled project
  3. pygame

Source

pygame / test / sprite_test.py

Diff from to

File test/sprite_test.py

  • Ignore whitespace
             spr = self.sprite()
             spr._layer = lay
             self.LG.add(spr)
-            if not sprites.has_key(lay):
+            if lay not in sprites:
                 sprites[lay] = []
             sprites[lay].append(spr)