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:
parent
ce18d1cc85
commit
b73cc8e0b3
@ -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
|
||||
|
@ -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'
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user