diff options
author | Ilya Fedin <fedin-ilja2010@ya.ru> | 2022-12-31 11:24:27 +0400 |
---|---|---|
committer | John Preston <johnprestonmail@gmail.com> | 2022-12-31 16:02:28 +0400 |
commit | efa287b7866e5777b25a2f0719d93a82458c6c60 (patch) | |
tree | d4f0c49c81798727cddaa9ea955c0c2af1c5d5b4 | |
parent | 23e1c6128b27487651c8be4f2734265b8284e0c9 (diff) |
Use text=True instead of decode() in prepare.py
-rw-r--r-- | Telegram/build/prepare/prepare.py | 2 |
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 |