Use text=True instead of decode() in prepare.py

This commit is contained in:
Ilya Fedin 2022-12-31 11:24:27 +04:00 committed by John Preston
parent 23e1c6128b
commit efa287b786
1 changed files with 1 additions and 1 deletions

View File

@ -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