Commits

cgohlke committed 0542d48

Fix inconsistent indentation. Remove trailing whitespace

Comments (0)

Files changed (1)

test/pixelcopy_test.py

                                       surf.get_flags(), surf.get_bitsize(),
                                       posn))
                 del view
-                    
+
                 if surf.get_masks()[3]:
                     dst.fill((0, 0, 0, 0))
                     view = dst.get_view('2')
                    self._make_surface(32),
                    self._make_surface(32, srcalpha=True),
                    ]
-        
+
         w, h = self.surf_size
 
         # broadcast column
             p = pixel.get_at_mapped((0, 0))
             for x in range(w):
                 for y in range(h):
-                     self.assertEqual(target.get_at_mapped((x, y)), p)
+                    self.assertEqual(target.get_at_mapped((x, y)), p)
 
-            
+
 class PixelCopyTestWithArray(unittest.TestCase):
     try:
         import numpy
         import numpy
 
         self.dst_types = [numpy.uint8, numpy.uint16, numpy.uint32]
-        try:    
-            self.dst_types.append(numpy.uint64) 
+        try:
+            self.dst_types.append(numpy.uint64)
         except AttributeError:
             pass
         pygame.display.init()
                                       surf.get_flags(), surf.get_bitsize(),
                                       dst.dtype,
                                       posn))
-                    
+
                 if surf.get_masks()[3]:
                     posn = (2, 1)
                     surf.set_at(posn, alpha_color)
                                   surf.get_flags(), surf.get_bitsize(),
                                   dst.dtype,
                                   posn))
-                
+
             if surf.get_masks()[3]:
                 posn = (2, 1)
                 surf.set_at(posn, alpha_color)
                                      (r_arr, r_surf,
                                       surf.get_flags(), surf.get_bitsize(),
                                       posn))
-        
+
             swapped_dst[...] = 0
             self.assertFalse(surf.get_locked())
             surface_to_array(swapped_dst, surf)
                                  (r_arr, r_surf,
                                   surf.get_flags(), surf.get_bitsize(),
                                   posn))
-        
+
     def test_map_array(self):
         try:
             from numpy import array, zeros, uint8, int32, alltrue
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.