From 88db0fe4eda3852e108f7b96d52da5fce7411eec Mon Sep 17 00:00:00 2001 From: Dan Ryan Date: Tue, 17 Apr 2018 12:28:59 -0400 Subject: [PATCH] Use `startswith` for url comparison in project Signed-off-by: Dan Ryan --- pipenv/project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipenv/project.py b/pipenv/project.py index 4cdcdab3..effaa17e 100644 --- a/pipenv/project.py +++ b/pipenv/project.py @@ -654,7 +654,7 @@ class Project(object): if name: source = [s for s in sources if s.get('name') == name] elif url: - source = [s for s in sources if s.get('url') in url] + source = [s for s in sources if url.startswith(s.get('url'))] if source: return first(source)