Skip to content

Commit

Permalink
Merge pull request #2522 from hainesc/master
Browse files Browse the repository at this point in the history
Fix wrong indentation in mixology
  • Loading branch information
sdispater authored Jun 9, 2020
2 parents bc9acdb + 6f94c6f commit ce134ce
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions poetry/mixology/incompatibility.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,18 +61,18 @@ def __init__(
else:
by_ref[ref] = term

new_terms = []
for by_ref in by_name.values():
positive_terms = [
term for term in by_ref.values() if term.is_positive()
]
if positive_terms:
new_terms += positive_terms
continue

new_terms += list(by_ref.values())

terms = new_terms
new_terms = []
for by_ref in by_name.values():
positive_terms = [
term for term in by_ref.values() if term.is_positive()
]
if positive_terms:
new_terms += positive_terms
continue

new_terms += list(by_ref.values())

terms = new_terms

self._terms = terms
self._cause = cause
Expand Down

0 comments on commit ce134ce

Please sign in to comment.