diff options
author | Christian Tismer <tismer@stackless.com> | 2020-02-19 13:17:10 +0100 |
---|---|---|
committer | Christian Tismer <tismer@stackless.com> | 2020-02-20 16:44:13 +0100 |
commit | bc4d618d5f4c82c9a826a195043739c7e63ed138 (patch) | |
tree | 83094008a97c7d85a847c4f3fcc5cf3dfc7d2264 /build_scripts | |
parent | d4ad80f7c09393438c7f330ee6bb85f34e4c6413 (diff) |
Fix qtinfo on macOS when XCode is newly installed
I happened to try out the "cling" C++ interpreter. That forced
me to install XCode. I did not run XCode because cling worked
immediately.
But then, building PySide always failed with an error in qtinfo.
This is a rare trap into which I fall every other year, so here is a
fix that returns the intended error message.
Change-Id: I9ec5774c49b8a186d6b4247150dac6b252e7cc64
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'build_scripts')
-rw-r--r-- | build_scripts/qtinfo.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build_scripts/qtinfo.py b/build_scripts/qtinfo.py index 7680dad02..4dc976360 100644 --- a/build_scripts/qtinfo.py +++ b/build_scripts/qtinfo.py @@ -130,7 +130,7 @@ class QtInfo(object): output = proc.communicate()[0] proc.wait() if proc.returncode != 0: - return None + return "" if sys.version_info >= (3,): output = str(output, 'ascii').strip() else: |