requirements: Upgrade Python requirements.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2024-11-18 16:49:34 -08:00
committed by Tim Abbott
parent a3eae0b6f0
commit 532aee926c
15 changed files with 1312 additions and 1335 deletions

View File

@@ -475,7 +475,7 @@ def get_tzdata_zi() -> IO[str]:
for path in zoneinfo.TZPATH:
filename = os.path.join(path, "tzdata.zi")
if os.path.exists(filename):
return open(filename) # noqa: SIM115
return open(filename)
raise RuntimeError("Missing time zone data (tzdata.zi)")

View File

@@ -119,8 +119,8 @@ def parser() -> argparse.ArgumentParser:
def maybe_gzip(logfile_name: str) -> TextIO:
if logfile_name.endswith(".gz"):
return gzip.open(logfile_name, "rt") # noqa: SIM115
return open(logfile_name) # noqa: SIM115
return gzip.open(logfile_name, "rt")
return open(logfile_name)
NGINX_LOG_LINE_RE = re.compile(