Permalink
Browse files

Support Python 3

  • Loading branch information...
1 parent 0db4d9c commit d160777b4c2df737c16b1477edb494e52ad83b08 @ppaez committed Feb 15, 2014
Showing with 1 addition and 4 deletions.
  1. +1 −4 tracks.py
View
@@ -23,15 +23,12 @@
playing = False
letra = ''
-def bytimestamp( a, b ):
- return cmp( a[4], b[4] )
-
def merge( lists ):
'Join each list in list in to one list.'
listagral = []
for lista in lists:
listagral.extend( lista )
- listagral.sort( bytimestamp ) # order by timestamp
+ listagral.sort(key=lambda e: e[4]) # order by timestamp
return listagral

0 comments on commit d160777

Please sign in to comment.