Skip to content

Commit 8537b09

Browse files
Update add_to_pydotorg.py
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
1 parent cfdbb1b commit 8537b09

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

add_to_pydotorg.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,9 +210,7 @@ def md5sum_for(filename: str) -> str:
210210

211211
def sha256sum_for(filename: str) -> str:
212212
"""Returns SHA256 checksum for filename."""
213-
return hashlib.sha256(
214-
open(filename, "rb").read(),
215-
).hexdigest()
213+
return hashlib.sha256(open(filename, "rb").read()).hexdigest()
216214

217215

218216
def filesize_for(filename: str) -> int:

0 commit comments

Comments
 (0)