use list and set comprehensions where appropriate
Signed-off-by: Nils Philippsen <nils@redhat.com>
This commit is contained in:
parent
247ede734b
commit
399bb28420
2 changed files with 2 additions and 2 deletions
|
@ -116,7 +116,7 @@ def get_primary_xml(destfolder, url, name):
|
|||
)
|
||||
|
||||
# Filter down to only the primary.xml files
|
||||
files = list((f, s, t) for f, s, t in files if 'primary.xml' in f)
|
||||
files = [(f, s, t) for f, s, t in files if 'primary.xml' in f]
|
||||
|
||||
if not files:
|
||||
log.debug('No primary.xml could be found in %s' % url)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue