Commits

Dobrosław Żybort  committed 33e7e3b

Fix: pep8 E201 whitespace after '[' or '{'

  • Participants
  • Parent commits cebb923

Comments (0)

Files changed (3)

File lazygal/eyecandy.py

         img = Image.open(image_path)
         img.thumbnail(self.thumb_size, Image.ANTIALIAS)
 
-        white_size = [ x + 2 * self.THUMB_WHITE_WIDTH for x in img.size ]
+        white_size = [x + 2 * self.THUMB_WHITE_WIDTH for x in img.size ]
 
         white = Image.new('RGB', white_size, 'white')
         white.paste(img, (self.THUMB_WHITE_WIDTH, self.THUMB_WHITE_WIDTH))

File lazygal/sourcetree.py

 
 class MediaHandler(object):
 
-    FORMATS = { '.jpeg' : ImageFile,
-                '.jpg'  : ImageFile,
-                '.png'  : ImageFile,
-                '.mov'  : VideoFile,
-                '.avi'  : VideoFile,
-                '.mp4'  : VideoFile,
-                '.3gp'  : VideoFile,
-                '.webm' : VideoFile,
+    FORMATS = {'.jpeg' : ImageFile,
+               '.jpg'  : ImageFile,
+               '.png'  : ImageFile,
+               '.mov'  : VideoFile,
+               '.avi'  : VideoFile,
+               '.mp4'  : VideoFile,
+               '.3gp'  : VideoFile,
+               '.webm' : VideoFile,
               }
 
     def __init__(self, album):

File lazygaltest/test_generators.py

         Files that are not part of what was generated or updated shall be
         spotted.
         """
-        pics = [ 'img%d.jpg' % i for i in range(0, 8)]
+        pics = ['img%d.jpg' % i for i in range(0, 8)]
         source_subgal = self.setup_subgal('subgal', pics)
 
         dest_path = self.get_working_path()
         config.set('webgal', 'thumbs-per-page', 4)
         self.setup_album(config)
 
-        pics = [ 'img%d.jpg' % i for i in range(0, 9)]
+        pics = ['img%d.jpg' % i for i in range(0, 9)]
         source_subgal = self.setup_subgal('subgal', pics)
 
         self.album.generate(self.dest_path)
         config.set('global', 'dir-flattening-depth', 1)
         self.setup_album(config)
 
-        pics = [ 'img%d.jpg' % i for i in range(0, 9)]
+        pics = ['img%d.jpg' % i for i in range(0, 9)]
         source_subgal = self.setup_subgal('subgal', pics)
 
         self.album.generate(self.dest_path)
         """
         self.setup_album()
 
-        pics = [ 'img%d.jpg' % i for i in range(0, 2)]
+        pics = ['img%d.jpg' % i for i in range(0, 2)]
         source_subgal = self.setup_subgal('subgal', pics)
 
         # cp -ar to create an out-of-tree source dir with pics