aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2019-01-31 20:57:00 -0500
committerGitHub <noreply@github.com>2019-01-31 20:57:00 -0500
commit3ee123b34d7f2a7ef305bc37c6a9b9f102a907c4 (patch)
tree7ecd22ec2ac52daa9668161f79b5b35ae33c7498 /setuptools
parent5133d86c3e71709f59fbb9c5b60577bcdb8a7698 (diff)
parent39130a855560e2838ce3cd899d8e7406fcdb4006 (diff)
downloadexternal_python_setuptools-3ee123b34d7f2a7ef305bc37c6a9b9f102a907c4.tar.gz
external_python_setuptools-3ee123b34d7f2a7ef305bc37c6a9b9f102a907c4.tar.bz2
external_python_setuptools-3ee123b34d7f2a7ef305bc37c6a9b9f102a907c4.zip
Merge pull request #1666 from pypa/bugfix/1663-restore-port
Bugfix/1663 restore port
Diffstat (limited to 'setuptools')
-rw-r--r--setuptools/package_index.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/setuptools/package_index.py b/setuptools/package_index.py
index 7e9517ce..ea76c005 100644
--- a/setuptools/package_index.py
+++ b/setuptools/package_index.py
@@ -1072,7 +1072,7 @@ def open_with_auth(url, opener=urllib.request.urlopen):
if auth:
auth = "Basic " + _encode_auth(auth)
- parts = scheme, parsed.hostname, path, params, query, frag
+ parts = scheme, netloc, path, params, query, frag
new_url = urllib.parse.urlunparse(parts)
request = urllib.request.Request(new_url)
request.add_header("Authorization", auth)