Skip to content

Commit

Permalink
set the version if the requirement is unpinned
Browse files Browse the repository at this point in the history
  • Loading branch information
jayfk committed Jan 25, 2017
1 parent 0140f07 commit ec4a64f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hashin.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def run_single_package(spec, file, algorithm, python_versions=None, verbose=Fals
package = data["package"]

new_lines = ''
new_lines = '{0}=={1} \\\n'.format(package, version)
new_lines = '{0}=={1} \\\n'.format(package, data['version'])
padding = ' ' * 4
for i, release in enumerate(data["hashes"]):
new_lines += (
Expand Down

0 comments on commit ec4a64f

Please sign in to comment.