diff --git a/distgit_bugzilla_sync/package_summaries.py b/distgit_bugzilla_sync/package_summaries.py index 478b324..bfbf474 100644 --- a/distgit_bugzilla_sync/package_summaries.py +++ b/distgit_bugzilla_sync/package_summaries.py @@ -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) diff --git a/distgit_bugzilla_sync/script.py b/distgit_bugzilla_sync/script.py index 265d01a..e7b61fb 100644 --- a/distgit_bugzilla_sync/script.py +++ b/distgit_bugzilla_sync/script.py @@ -652,7 +652,7 @@ class DistgitBugzillaSync: # Combine and collapse those two into a single list: self.pagure_projects = [] if project_list: - project_list = set(tuple(p.split("/", 1)) for p in project_list) + project_list = {tuple(p.split("/", 1)) for p in project_list} for namespace, entries in pagure_namespace_to_poc.items(): for name, poc in entries.items(): if not project_list or (namespace, name) in project_list: