We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pipfile/pipfile/api.py
Lines 128 to 133 in 7d7c312
Because line 130 is not using copy to copy self.data, the subsequent lines are mutating self.data, which is adding self.hash to the value self.data.
copy
self.data
self.hash
This causes every subsequent call to Pipfile.lock() to hash the hash, which means the hash changes every time.
Pipfile.lock()
import pipfile p = pipfile.load("Pipfile") hash_before = p.hash print(hash_before) p.lock() hash_after = p.hash print(hash_after) print(hash_before == hash_after)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
pipfile/pipfile/api.py
Lines 128 to 133 in 7d7c312
Because line 130 is not using
copy
to copyself.data
, the subsequent lines are mutatingself.data
, which is addingself.hash
to the valueself.data
.This causes every subsequent call to
Pipfile.lock()
to hash the hash, which means the hash changes every time.The text was updated successfully, but these errors were encountered: