~ubuntu-branches/debian/sid/lazygal/sid

« back to all changes in this revision

Viewing changes to lazygal/feeds.py

  • Committer: Package Import Robot
  • Author(s): Michal Čihař
  • Date: 2014-09-22 11:03:44 UTC
  • mfrom: (1.2.18)
  • Revision ID: package-import@ubuntu.com-20140922110344-2wa7dww3jg2rucbt
Tags: 0.8.6-1
* New upstream release.
  - Fixes index out of range error (Closes: #760780).
* Bump standards to 3.9.6.

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
 
76
76
        pubdate = ET.SubElement(channel, 'pubDate')
77
77
 
78
 
        self.items.sort(lambda x, y: int(x['timestamp'] - y['timestamp']))
 
78
        self.items.sort(key=lambda x: int(x['timestamp']))
79
79
        for item in self.items:
80
80
            rssitem = ET.SubElement(channel, 'item')
81
81
            ET.SubElement(rssitem, 'title').text = item['title']