chiark / gitweb /
Make pylint happy about re-using the 'added' var
authorDaniel Martí <mvdan@mvdan.cc>
Thu, 3 Apr 2014 14:05:15 +0000 (16:05 +0200)
committerDaniel Martí <mvdan@mvdan.cc>
Thu, 3 Apr 2014 14:05:15 +0000 (16:05 +0200)
fdroidserver/common.py

index 99abe9f8928d96884e2f7b0ead2e9dc5ff5c7f4c..205beccfdc3b8d371c40fd1047c12d9231ec0815 100644 (file)
@@ -1355,7 +1355,7 @@ class KnownApks:
                 else:
                     apps[appid] = added
         sortedapps = sorted(apps.iteritems(), key=operator.itemgetter(1))[-num:]
-        lst = [app for app,added in sortedapps]
+        lst = [app for app,_ in sortedapps]
         lst.reverse()
         return lst