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

Use partition

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