summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIlya Fedin <fedin-ilja2010@ya.ru>2022-12-31 11:24:27 +0400
committerJohn Preston <johnprestonmail@gmail.com>2022-12-31 16:02:28 +0400
commitefa287b7866e5777b25a2f0719d93a82458c6c60 (patch)
treed4f0c49c81798727cddaa9ea955c0c2af1c5d5b4
parent23e1c6128b27487651c8be4f2734265b8284e0c9 (diff)
Use text=True instead of decode() in prepare.py
-rw-r--r--Telegram/build/prepare/prepare.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Telegram/build/prepare/prepare.py b/Telegram/build/prepare/prepare.py
index 865f0b306d..7d5a366323 100644
--- a/Telegram/build/prepare/prepare.py
+++ b/Telegram/build/prepare/prepare.py
@@ -419,7 +419,7 @@ win:
""", 'ThirdParty')
stage('python', """
-version: """ + (subprocess.run(['python', '-V'], capture_output=True, env=modifiedEnv).stdout.decode().strip().split()[-1] if win else '0') + """
+version: """ + (subprocess.run(['python', '-V'], capture_output=True, text=True, env=modifiedEnv).stdout.strip().split()[-1] if win else '0') + """
win:
python -m venv python
python\\Scripts\\activate.bat