forked from qt-creator/qt-creator
macOS removed support for Python2, so switch to Python3 (and fix that we now need to specify text mode for a temporary file if we want to write text there, not binary data). Fixes: QTCREATORBUG-27337 Change-Id: I4884480c32e017aa710f90ab0b5afe493a2adb9e Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io>