String formatting simplification

This commit is contained in:
Disassembler 2019-10-05 22:42:13 +02:00
parent b02fc3f42c
commit ecfa225187
No known key found for this signature in database
GPG Key ID: 524BD33A0EE29499

View File

@ -50,7 +50,7 @@ parser_container_cleanup.add_argument('lxc', nargs=argparse.REMAINDER)
def print_apps(packages): def print_apps(packages):
for app, meta in packages.items(): for app, meta in packages.items():
print('{} {}'.format(app, meta['version'])) print(app, meta['version'])
for key, value in meta['meta'].items(): for key, value in meta['meta'].items():
print(' {}: {}'.format(key, value)) print(' {}: {}'.format(key, value))