requirements: Upgrade Python requirements.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2021-12-01 15:02:25 -08:00
committed by Tim Abbott
parent a444560684
commit 5344e86c57
8 changed files with 986 additions and 863 deletions

View File

@@ -97,8 +97,10 @@ if ordered_filenames[1] == new_basename:
print("Updating SHA256SUMS.txt..")
contents = b""
for filename in ordered_filenames:
contents += f"{file_hashes[filename]} {filename}\n".encode()
for ordered_filename in ordered_filenames:
# natsorted type annotation is insufficiently generic
assert isinstance(ordered_filename, str)
contents += f"{file_hashes[ordered_filename]} {ordered_filename}\n".encode()
bucket.put_object(
ACL="public-read",
Body=contents,