solver: Merge two loops by using chain

Signed-off-by: Niels Thykier <niels@thykier.net>
ubuntu/rebased
Niels Thykier 6 years ago
parent 16dc303190
commit 9971714e27
No known key found for this signature in database
GPG Key ID: A65B78DBE67C7AAC

@ -226,10 +226,8 @@ class InstallabilitySolver(object):
order[key] = {'before': set(), 'after': set()}
going_in.update(adds)
going_out.update(rms)
for a in adds:
ptable[a] = key
for r in rms:
ptable[r] = key
for x in chain(adds, rms):
ptable[x] = key
if debug_solver: # pragma: no cover
self._dump_groups(groups)

Loading…
Cancel
Save