mirror of
https://github.com/zulip/zulip.git
synced 2025-10-27 01:53:59 +00:00
python: Remove default "utf8" argument for encode(), decode().
Partially generated by pyupgrade. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
1760897a8c
commit
ad5f0c05b5
@@ -376,7 +376,7 @@ def main(options: argparse.Namespace) -> "NoReturn":
|
||||
sha_sum = hashlib.sha1()
|
||||
|
||||
for apt_depedency in SYSTEM_DEPENDENCIES:
|
||||
sha_sum.update(apt_depedency.encode("utf8"))
|
||||
sha_sum.update(apt_depedency.encode())
|
||||
if "debian" in os_families():
|
||||
with open("scripts/lib/setup-apt-repo", "rb") as fb:
|
||||
sha_sum.update(fb.read())
|
||||
|
||||
Reference in New Issue
Block a user