Remove unused variables in collection API (#67724)

Remove unused variables in _download_file API

Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
Abhijeet Kasurde 2020-02-25 23:00:54 +05:30 committed by GitHub
parent 8eb00dd14c
commit 848aa06cac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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): 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])) urlsplit = os.path.splitext(to_text(url.rsplit('/', 1)[1]))
b_file_name = to_bytes(urlsplit[0], errors='surrogate_or_strict') b_file_name = to_bytes(urlsplit[0], errors='surrogate_or_strict')
b_file_ext = to_bytes(urlsplit[1], errors='surrogate_or_strict') b_file_ext = to_bytes(urlsplit[1], errors='surrogate_or_strict')