Skip to content

Commit

Permalink
Write markers before hashes to fix issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
milind-shakya-sp committed Mar 11, 2019
1 parent cb83ccf commit 6d02128
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions piptools/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ def format_requirement(ireq, marker=None, hashes=None):
else:
line = str(ireq.req).lower()

if marker:
line = '{} ; {}'.format(line, marker)

if hashes:
for hash_ in sorted(hashes):
line += " \\\n --hash={}".format(hash_)

if marker:
line = '{} ; {}'.format(line, marker)

return line


Expand Down

0 comments on commit 6d02128

Please sign in to comment.