Commits

Dobrosław Żybort  committed 608c93e

Fix: pep8 E202 whitespace before ')' or ']'

  • Participants
  • Parent commits 52323ca

Comments (0)

Files changed (2)

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/feeds.py

                                   'xmlns:atom': 'http://www.w3.org/2005/Atom'})
 
         channel = ET.SubElement(root, 'channel')
-        ET.SubElement(channel, 'title' ).text = self.title
-        ET.SubElement(channel, 'link' ).text = self.__url_quote(self.link)
-        ET.SubElement(channel, 'description' ).text = self.description
+        ET.SubElement(channel, 'title').text = self.title
+        ET.SubElement(channel, 'link').text = self.__url_quote(self.link)
+        ET.SubElement(channel, 'description').text = self.description
         ET.SubElement(channel, 'atom:link', {'href': self.link + feed_filename,
                                              'rel' : 'self',
                                              'type': 'application/rss+xml'})
     def dump(self, path):
         (root, channel) = self.__get_root_and_channel(os.path.basename(path))
 
-        pubdate = ET.SubElement(channel, 'pubDate' )
+        pubdate = ET.SubElement(channel, 'pubDate')
 
         self.items.sort(lambda x, y: int(x['timestamp'] - y['timestamp']))
         for item in self.items: