Commit 1a91bec6 authored by Reinout van Rees's avatar Reinout van Rees

Added docstring

parent 52ac25dc
...@@ -608,6 +608,7 @@ class Installer: ...@@ -608,6 +608,7 @@ class Installer:
def _constrain(self, requirement): def _constrain(self, requirement):
"""Return requirement with optional [versions] constraint added."""
constraint = self._versions.get(requirement.project_name.lower()) constraint = self._versions.get(requirement.project_name.lower())
if constraint: if constraint:
requirement = _constrained_requirement(constraint, requirement) requirement = _constrained_requirement(constraint, requirement)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment