qvm-template: Make pylint happy

This commit is contained in:
WillyPillow 2020-09-07 02:12:22 +08:00
parent 161ff01d7d
commit b9f1d4c633
No known key found for this signature in database
GPG Key ID: 3839E194B1415A9C

View File

@ -1016,7 +1016,8 @@ def list_templates(args: argparse.Namespace,
buildtime, licence, url, summary, description = data
dlsize = str(dlsize)
buildtime = buildtime.strftime(DATE_FMT)
install_time = install_time.strftime(DATE_FMT) if install_time else ''
install_time = install_time.strftime(DATE_FMT) \
if install_time else ''
if replace_newline:
description = description.replace('\n', '|')
output.append({