1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-14 02:50:12 +01:00

Replace itervalues() with values()

This commit is contained in:
Daniel Martí 2016-01-04 17:43:22 +01:00
parent ce18d1cc85
commit b73cc8e0b3
3 changed files with 3 additions and 3 deletions

View File

@ -1070,7 +1070,7 @@ def main():
raise FDroidException("No apps to process.")
if options.latest:
for app in apps.itervalues():
for app in apps.values():
for build in reversed(app.builds):
if build.disable and not options.force:
continue

View File

@ -75,7 +75,7 @@ def main():
sys.exit(1)
# Get all metadata-defined apps...
allmetaapps = [app for app in metadata.read_metadata().itervalues()]
allmetaapps = [app for app in metadata.read_metadata().values()]
metaapps = [app for app in allmetaapps if not app.Disabled]
statsdir = 'stats'

View File

@ -1198,7 +1198,7 @@ def main():
# Generate a list of categories...
categories = set()
for app in apps.itervalues():
for app in apps.values():
categories.update(app.Categories)
# Read known apks data (will be updated and written back when we've finished)