mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +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
@@ -35,7 +35,7 @@ def python_version() -> str:
|
||||
"""
|
||||
Returns the Python version as string 'Python major.minor.patchlevel'
|
||||
"""
|
||||
return subprocess.check_output(["/usr/bin/python3", "-VV"], universal_newlines=True)
|
||||
return subprocess.check_output(["/usr/bin/python3", "-VV"], text=True)
|
||||
|
||||
|
||||
def hash_deps(deps: Iterable[str]) -> str:
|
||||
|
||||
Reference in New Issue
Block a user