make sorting one step

git-svn-id: svn://svn.berlios.de/gpodder/trunk@269 b0d088ad-0a06-0410-aad2-9ed5178a7e87
This commit is contained in:
Thomas Perl 2007-03-13 18:47:22 +00:00
parent 3b063000c1
commit 3dff1aeed7
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,8 @@
Tue, 13 Mar 2007 19:45:17 +0100 <thp@perli.net>
* src/gpodder/librssreader.py: Make sorting a single step by using
sort( reverse = True) instead of sort() + reverse() -- thanks to
Michel Salim for pointing that out :)
Mon, 12 Mar 2007 22:06:45 +0100 <thp@perli.net>
* TODO: Updated TODO list (search box request)

View file

@ -82,8 +82,7 @@ class rssReader( DefaultHandler, ErrorHandler):
# All episodes have a parseable pubDate, so
# we can simply sort the episodes by their
# pubDate and be sure to have a sane ordering.
self.channel.sort()
self.channel.reverse()
self.channel.sort( reverse = True)
def startElement( self, name, attrs):
self.current_element_data = ""