Remove single use variable show_url
@@ -180,8 +180,6 @@ def _download_url(
else:
show_progress = False
- show_url = link.show_url
-
def resp_read(chunk_size):
try:
# Special case for urllib3.
@@ -227,7 +225,7 @@ def _download_url(
progress_indicator = _progress_indicator
if link.netloc == PyPI.netloc:
- url = show_url
+ url = link.show_url
else:
url = link.url_without_fragment
