Remove unused variables in collection API (#67724)

Remove unused variables in _download_file API

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
pull/67456/head
Abhijeet Kasurde 5 years ago committed by GitHub
parent 8eb00dd14c
commit 848aa06cac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1011,9 +1011,6 @@ def _get_collection_info(dep_map, existing_collections, collection, requirement,
def _download_file(url, b_path, expected_hash, validate_certs, headers=None):
bufsize = 65536
digest = sha256()
urlsplit = os.path.splitext(to_text(url.rsplit('/', 1)[1]))
b_file_name = to_bytes(urlsplit[0], errors='surrogate_or_strict')
b_file_ext = to_bytes(urlsplit[1], errors='surrogate_or_strict')

Loading…
Cancel
Save