mirror of
https://github.com/zulip/zulip.git
synced 2025-10-28 02:23:57 +00:00
python: Replace universal_newlines with text.
This is supported in Python ≥ 3.7. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
fd6d048efd
commit
97e4e9886c
@@ -42,9 +42,7 @@ def generate_sha1sum_node_modules(
|
||||
data[YARN_LOCK_FILE_PATH] = f.read().strip()
|
||||
with open(YARN_PACKAGE_JSON) as f:
|
||||
data["yarn-package-version"] = json.load(f)["version"]
|
||||
data["node-version"] = subprocess.check_output(
|
||||
["node", "--version"], universal_newlines=True
|
||||
).strip()
|
||||
data["node-version"] = subprocess.check_output(["node", "--version"], text=True).strip()
|
||||
data["yarn-args"] = get_yarn_args(production=production)
|
||||
|
||||
sha1sum = hashlib.sha1()
|
||||
|
||||
Reference in New Issue
Block a user