1. pygame
  2. Untitled project
  3. pygame

Source

pygame / test / rect_test.py

Diff from to

File test/rect_test.py

  • Ignore whitespace
         self.assertEqual( (r.left,r.bottom), r.bottomleft )
         self.assertEqual( (r.right,r.bottom), r.bottomright )
 
-        midx = r.left + r.width/2
-        midy = r.top + r.height/2
+        midx = r.left + r.width // 2
+        midy = r.top + r.height // 2
 
         self.assertEqual( midx, r.centerx )
         self.assertEqual( midy, r.centery )