Commit ae9709b3 authored by Jason R. Coombs's avatar Jason R. Coombs

Use filter

parent 7d34b2d7
......@@ -2693,8 +2693,7 @@ class Distribution(object):
environment markers and filter out any dependencies
not matching the markers.
"""
for extra in list(dm):
if extra:
for extra in list(filter(None, dm)):
new_extra = extra
reqs = dm.pop(extra)
if ':' in extra:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment