From b7cfcb0a4309f3786c8e997ebbe499b2c7aac928 Mon Sep 17 00:00:00 2001 From: Xavier Fernandez Date: Tue, 10 Mar 2015 23:41:04 +0100 Subject: [PATCH] refix find_requirement docstring --- pip/index.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pip/index.py b/pip/index.py index 09ea34733..38144331e 100644 --- a/pip/index.py +++ b/pip/index.py @@ -408,9 +408,11 @@ class PackageFinder(object): ) def find_requirement(self, req, upgrade): - """Expects req, an InstallRequirement and upgrade, a boolean - Returns an InstallationCandidate or None - May raise DistributionNotFound or BestVersionAlreadyInstalled""" + """Try to find an InstallationCandidate for req + + Expects req, an InstallRequirement and upgrade, a boolean + Returns an InstallationCandidate or None + May raise DistributionNotFound or BestVersionAlreadyInstalled""" all_versions = self._find_all_versions(req) if not all_versions: logger.critical(