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

Use partition

parent ae9709b3
......@@ -2696,8 +2696,8 @@ class Distribution(object):
for extra in list(filter(None, dm)):
new_extra = extra
reqs = dm.pop(extra)
if ':' in extra:
new_extra, marker = extra.split(':', 1)
new_extra, _, marker = extra.partition(':')
if marker:
if invalid_marker(marker):
# XXX warn
reqs = []
......
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