Merge pull request #3448 from pypa/bugfix/3446

Fix order of hashes
This commit is contained in:
Frost Ming
2019-01-17 22:40:15 +08:00
committed by GitHub
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -0,0 +1 @@
Fix the wrong order of old and new hashes in message.
+2 -2
View File
@@ -1186,9 +1186,9 @@ def do_init(
)
else:
if old_hash:
msg = fix_utf8("Pipfile.lock ({1}) out of date, updating to ({0})…")
msg = fix_utf8("Pipfile.lock ({0}) out of date, updating to ({1})…")
else:
msg = fix_utf8("Pipfile.lock is corrupted, replaced with ({0})…")
msg = fix_utf8("Pipfile.lock is corrupted, replaced with ({1})…")
click.echo(
crayons.red(msg.format(old_hash[-6:], new_hash[-6:]), bold=True),
err=True,