Skip to content

Conversation

@JacobCoffee
Copy link
Member

@JacobCoffee JacobCoffee commented Nov 27, 2025

Adds sha256 data for a release.

One half of a PR, requiring the other to merge first.
re: python/pythondotorg#1227 (comment)

Other half: python/pythondotorg#2830

Comment on lines +213 to +215
return hashlib.sha256(
open(filename, "rb").read(),
).hexdigest()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return hashlib.sha256(
open(filename, "rb").read(),
).hexdigest()
return hashlib.sha256(open(filename, "rb").read()).hexdigest()

or

Suggested change
return hashlib.sha256(
open(filename, "rb").read(),
).hexdigest()
with open(filename, "rb") as f:
return hashlib.sha256(f.read()).hexdigest()

@hugovk
Copy link
Member

hugovk commented Dec 2, 2025

[Marking as draft until python/pythondotorg#2830 is merged]

@hugovk hugovk marked this pull request as draft December 2, 2025 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants