Skip to content

Commit

Permalink
Construct params using algebra.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Dec 30, 2022
1 parent 0bc9f16 commit 8b24cf0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pip_run/scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ class Dependencies(list):
index_url = None

def params(self):
prefix = ['--index-url', self.index_url] if self.index_url else []
return prefix + self
return ['--index-url', self.index_url] * bool(self.index_url) + self

@classmethod
def load(cls, items):
Expand Down

0 comments on commit 8b24cf0

Please sign in to comment.