diff options
| author | Adrian Herrmann <adrian.herrmann@qt.io> | 2022-09-07 19:46:05 +0200 |
|---|---|---|
| committer | Adrian Herrmann <adrian.herrmann@qt.io> | 2022-09-08 16:43:21 +0200 |
| commit | bab4f34755a9c00430f9ad528e9c1209a94f0778 (patch) | |
| tree | 8a8bf8aaf38561867f344318b97e7f787c7fa00f /build_scripts/utils.py | |
| parent | 48258c5a099be2c4accf373a2e2f52d48359cfa2 (diff) | |
Fix TypeError when comparing Qt.Flags and objects
Comparing a QtCore.Qt.Flags object with any other object calls the
PySideQFlags_tp_richcompare() function. This function always threw a
TypeError when comparing to a non-numerical object, causing undesired
effects. Account for these cases now by returning True or False if the
compare operator is != or ==, respectively.
Pick-to: 6.3 6.2
Fixes: PYSIDE-2048
Change-Id: Ic81a65ace743b57e90ffe7883e42eb8330b78832
Reviewed-by: Christian Tismer <tismer@stackless.com>
Diffstat (limited to 'build_scripts/utils.py')
0 files changed, 0 insertions, 0 deletions
