Commits

Dobrosław Żybort  committed afcee6b

fix: pep8 E128 continuation line under-indented for visual indent

  • Participants
  • Parent commits 67fde9f

Comments (0)

Files changed (5)

File lazygal/generators.py

         self.default_size_name = self.browse_sizes[0]
 
         self.tpl_vars = self.__load_tpl_vars()
-        styles = self.album.get_avail_styles(self.album.theme,
-                                     self.config.get('webgal', 'default-style'))
+        styles = self.album.get_avail_styles(
+            self.album.theme, self.config.get('webgal', 'default-style'))
         self.tpl_vars.update({'styles': styles})
 
         self.set_original(self.config.getboolean('webgal', 'original'),

File lazygal/genpage.py

             dir_info['link'] = posixpath.join(subgal.source_dir.name,
                                               self._get_related_index_fn())
             dir_info['link'] = self.url_quote(dir_info['link'])
-            dir_info['album_picture'] = posixpath.join(subgal.source_dir.name,
-                                            self.dir.get_webalbumpic_filename())
+            dir_info['album_picture'] = \
+                posixpath.join(subgal.source_dir.name,
+                               self.dir.get_webalbumpic_filename())
             dir_info['album_picture'] = self.url_quote(dir_info['album_picture'])
             subgal_links.append(dir_info)
         return subgal_links
         url = os.path.join(self.pub_url, webalbumdir.source_dir.strip_root())
 
         desc_values = {}
-        desc_values['album_pic_path'] = os.path.join(url,
-                                         webalbumdir.get_webalbumpic_filename())
+        desc_values['album_pic_path'] = \
+            os.path.join(url, webalbumdir.get_webalbumpic_filename())
         desc_values['subgal_count'] = webalbumdir.get_subgal_count()
         desc_values['picture_count'] = webalbumdir.source_dir.get_media_count('image')
         desc_values['desc'] = webalbumdir.source_dir.desc

File lazygal/mediautils.py

         if not gobjects_threads_init:
             gobject_init()
 
-        self.filesrc.set_property("location",
-                            self.input_file.encode(sys.getfilesystemencoding()))
+        self.filesrc.set_property(
+            "location", self.input_file.encode(sys.getfilesystemencoding()))
 
     def check_interrupt(self):
         if interrupted:
 
         # RGB is what is assumed in order to load the frame into a PIL Image.
         self.capsfilter = gst.element_factory_make('capsfilter')
-        self.capsfilter.set_property('caps',
-                              gst.Caps('video/x-raw-rgb,framerate=%s/1' % fps))
+        self.capsfilter.set_property(
+            'caps', gst.Caps('video/x-raw-rgb,framerate=%s/1' % fps))
         self.pipeline.add(self.capsfilter)
         videorate.link(self.capsfilter)
 

File lazygaltest/test_gendeps.py

         dest_path = os.path.join(self.tmpdir, 'dst')
         dest_subgal = WebalbumDir(source_subgal, [], self.album, dest_path)
 
-        self.assertTrue(dest_subgal.needs_build(),
-               'Webalbum subgal has not been built and does not need build.')
+        self.assertTrue(
+            dest_subgal.needs_build(),
+            'Webalbum subgal has not been built and does not need build.')
 
         self.album.generate(dest_path)
         dest_subgal = WebalbumDir(source_subgal, [], self.album, dest_path)
 
-        self.assertFalse(dest_subgal.needs_build(),
+        self.assertFalse(
+            dest_subgal.needs_build(),
             'Webalbum subgal has been built and does need build because of %s.'
             % str(dest_subgal.needs_build(True)))
 
         self.album.generate(dest_path)
         dest_subgal = WebalbumDir(source_subgal, [], self.album, dest_path)
 
-        self.assertFalse(dest_subgal.needs_build(),
+        self.assertFalse(
+            dest_subgal.needs_build(),
             'Webalbum subgal has been built and does need build because of %s.'
             % str(dest_subgal.needs_build(True)))
 
                                   self.album)
         dest_subgal = WebalbumDir(source_subgal, [], self.album, dest_path)
 
-        self.assertTrue(dest_subgal.needs_build(),
+        self.assertTrue(
+            dest_subgal.needs_build(),
             'Webalbum subgal should need build because of updated dir md.')
 
     def test_subgal_update(self):
         self.album.generate(dest_path)
         dest_subgal = WebalbumDir(source_subgal, [], self.album, dest_path)
 
-        self.assertFalse(dest_subgal.needs_build(),
+        self.assertFalse(
+            dest_subgal.needs_build(),
             'Webalbum subgal has been built and does need build because of %s.'
             % str(dest_subgal.needs_build(True)))
 
         dest_subgal = WebalbumDir(source_subgal, [], self.album, dest_path)
 
         # Subgal should need build.
-        self.assertTrue(dest_subgal.needs_build(),
+        self.assertTrue(
+            dest_subgal.needs_build(),
             'Webalbum subgal should need build because of added pic in subgal.')
 
         # Parent directory should need build.
         source_gal = Directory(self.source_dir, [source_subgal], [], self.album)
         dest_gal = WebalbumDir(source_gal, [dest_subgal], self.album, dest_path)
-        self.assertTrue(dest_gal.needs_build(),
+        self.assertTrue(
+            dest_gal.needs_build(),
             'Webalbum gal should need build because of added pic in subgal.')
 
         # Parent directory should need build.
         parent_index = WebalbumIndexPage(dest_gal, 'small', 0,
                                          [dest_subgal],
                                          [(dest_subgal, dest_subgal.medias)])
-        self.assertTrue(parent_index.needs_build(),
-         'Webalbum gal index should need build because of added pic in subgal.')
+        self.assertTrue(
+            parent_index.needs_build(),
+            'Webalbum gal index should need build because of added pic in subgal.')
 
 
 if __name__ == '__main__':
 
             if adjust:
                 distutils.log.info("copying and adjusting %s -> %s", script,
-                         self.build_dir)
+                                   self.build_dir)
                 if not self.dry_run:
                     outf = open(outfile, "w")
                     if not distutils.sysconfig.python_build:
                     newmode = (oldmode | 0555) & 07777
                     if newmode != oldmode:
                         distutils.log.info("changing mode of %s from %o to %o",
-                                 file, oldmode, newmode)
+                                           file, oldmode, newmode)
                         os.chmod(file, newmode)
 
     # copy_scripts ()
             (os.path.join('share', 'lazygal', 'themes', themename),
                 glob.glob(os.path.join('themes', themename, '*'))))
 
-setup(name = 'lazygal',
+setup(
+    name = 'lazygal',
     version = lazygal.__version__,
     description = 'Static web gallery generator',
     long_description = '',