From 3ee8e1159acbad2a1463283dccaefdab6232f9c4 Mon Sep 17 00:00:00 2001 From: Dan Ryan Date: Wed, 10 Oct 2018 11:27:44 -0400 Subject: [PATCH] Fix source naming 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 addc8ada..3a4d3cce 100644 --- a/pipenv/project.py +++ b/pipenv/project.py @@ -824,7 +824,7 @@ class Project(object): self.write_toml(p) def src_name_from_url(self, index_url): - name, _, tld_guess = six.moves.urllib.parse.urlsplit(index).netloc.rpartition( + name, _, tld_guess = six.moves.urllib.parse.urlsplit(index_url).netloc.rpartition( "." ) src_name = name.replace(".", "")