summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pkg_resources/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg_resources/__init__.py b/pkg_resources/__init__.py
index c32de489..1d8d88c8 100644
--- a/pkg_resources/__init__.py
+++ b/pkg_resources/__init__.py
@@ -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 = []