From 062ccf9dba50a44502aab15a89acf45b9217c545 Mon Sep 17 00:00:00 2001 From: Chris Hunt Date: Tue, 4 Feb 2020 21:31:59 -0500 Subject: [PATCH] Use early-return style in unpack_url This will make it easier to move directory handling up to unpack_url. --- src/pip/_internal/operations/prepare.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pip/_internal/operations/prepare.py b/src/pip/_internal/operations/prepare.py index 0b61f2052..afca05316 100644 --- a/src/pip/_internal/operations/prepare.py +++ b/src/pip/_internal/operations/prepare.py @@ -274,7 +274,7 @@ def unpack_url( return None # file urls - elif link.is_file: + if link.is_file: return unpack_file_url(link, location, download_dir, hashes=hashes) # http urls