Commits

Dobrosław Żybort committed cefc850

Fix: pep8 E203 whitespace before ':' (not all removed)

  • Participants
  • Parent commits 33e7e3b

Comments (0)

Files changed (6)

File lazygal/feeds.py

         self.__maxitems = maxitems
 
     def __get_root_and_channel(self, feed_filename):
-        root = ET.Element('rss', {'version'    : '2.0',
-                                  'xmlns:atom' : 'http://www.w3.org/2005/Atom'})
+        root = ET.Element('rss', {'version'   : '2.0',
+                                  'xmlns:atom': 'http://www.w3.org/2005/Atom'})
 
         channel = ET.SubElement(root, 'channel')
         ET.SubElement(channel, 'title' ).text = self.title

File lazygal/generators.py

         self.tpl_vars = self.__load_tpl_vars()
         styles = self.album.get_avail_styles(self.album.theme,
                                      self.config.get('webgal', 'default-style'))
-        self.tpl_vars.update({'styles' : styles})
+        self.tpl_vars.update({'styles': styles})
 
         self.set_original(self.config.getboolean('webgal', 'original'),
                           self.config.getstr('webgal', 'original-baseurl'),

File lazygal/genmedia.py

         return PILImage.open(self.source_media.path)
 
     TRANSPOSE_METHODS = {
-        90  : PILImage.ROTATE_90,
-        180 : PILImage.ROTATE_180,
-        270 : PILImage.ROTATE_270,
+        90 : PILImage.ROTATE_90,
+        180: PILImage.ROTATE_180,
+        270: PILImage.ROTATE_270,
     }
 
     def resize(self, im):

File lazygal/pyexiv2api.py

         return decode_exif_user_comment(self._tag, self._imgpath)
 
     TAG_PYTRANSLATORS = {
-        'Exif.Photo.DateTimeDigitized' : 'get_exif_date',
-        'Exif.Photo.DateTimeOriginal'  : 'get_exif_date',
-        'Exif.Photo.UserComment'       : 'get_decoded_exif_user_comment',
-        'Exif.Image.DateTime'          : 'get_exif_date',
-        'Exif.Image.Orientation'       : 'get_int',
+        'Exif.Photo.DateTimeDigitized': 'get_exif_date',
+        'Exif.Photo.DateTimeOriginal' : 'get_exif_date',
+        'Exif.Photo.UserComment'      : 'get_decoded_exif_user_comment',
+        'Exif.Image.DateTime'         : 'get_exif_date',
+        'Exif.Image.Orientation'      : 'get_int',
     }
 
     def get_value(self):

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 lazygal/tpl.py

 class TplFactory(object):
 
     known_exts = {
-        '.thtml' : XmlTemplate,
-        '.tcss'  : PlainTemplate,
-        '.tjs'   : PlainTemplate,
+        '.thtml': XmlTemplate,
+        '.tcss' : PlainTemplate,
+        '.tjs'  : PlainTemplate,
     }
 
     def __init__(self, default_tpl_dir, tpl_dir):