From 7ebc54171c9612b78e59d8012c0d8c1b70f78431 Mon Sep 17 00:00:00 2001 From: tbeswick Date: Fri, 11 Oct 2019 17:15:35 +1300 Subject: [PATCH] Fixed missing return statement in `Mercurial.controls_location()`, it only got found after reverting `VersionControl.controls_location()` --- src/pip/_internal/vcs/mercurial.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pip/_internal/vcs/mercurial.py b/src/pip/_internal/vcs/mercurial.py index bc4b19c7294..d9b58cfe9a4 100644 --- a/src/pip/_internal/vcs/mercurial.py +++ b/src/pip/_internal/vcs/mercurial.py @@ -147,6 +147,7 @@ def controls_location(cls, location): show_stdout=False, on_returncode='raise', log_failed_cmd=False) + return True except (BadCommand, InstallationError): return False