mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
requirements: Upgrade Python requirements.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
a3eae0b6f0
commit
532aee926c
@@ -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)")
|
||||
|
||||
|
||||
|
@@ -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(
|
||||
|
Reference in New Issue
Block a user