mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
Fix indentation: fix indentation
This commit is contained in:
parent
b1978bc608
commit
b719cc0033
|
@ -100,16 +100,16 @@ class RequirementPreparer(object):
|
||||||
@property
|
@property
|
||||||
def _download_should_save(self):
|
def _download_should_save(self):
|
||||||
# type: () -> bool
|
# type: () -> bool
|
||||||
# TODO: Modify to reduce indentation needed
|
if not self.download_dir:
|
||||||
if self.download_dir:
|
return False
|
||||||
if os.path.exists(self.download_dir):
|
|
||||||
return True
|
if os.path.exists(self.download_dir):
|
||||||
else:
|
return True
|
||||||
logger.critical('Could not find download directory')
|
|
||||||
raise InstallationError(
|
logger.critical('Could not find download directory')
|
||||||
"Could not find or access download directory '%s'"
|
raise InstallationError(
|
||||||
% display_path(self.download_dir))
|
"Could not find or access download directory '%s'"
|
||||||
return False
|
% display_path(self.download_dir))
|
||||||
|
|
||||||
def prepare_linked_requirement(
|
def prepare_linked_requirement(
|
||||||
self,
|
self,
|
||||||
|
|
Loading…
Reference in a new issue