Undo un-necessary reformatting
@@ -207,12 +207,12 @@ class RequirementSet(object):
def has_requirement(self, project_name):
name = project_name.lower()
- return (
- name in self.requirements and
+ if (name in self.requirements and
not self.requirements[name].constraint or
name in self.requirement_aliases and
- not self.requirements[self.requirement_aliases[name]].constraint
- )
+ not self.requirements[self.requirement_aliases[name]].constraint):
+ return True
+ return False
@property
def has_requirements(self):
