mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-05-29 02:17:28 -07:00
- PySide2 is not compatible with python3.10, to add python3.10 to this package anyway we need to force disable pyside2 if we want to use python_targets_python3_10. - To accomadate this we have to rewrite the test suite to support running if one of the two implementations is disabled. Otherwise tests would fail with USE="pyqt5 -pyside2 python_targets_python3_10: due to ImportErrors that we explicitly introduced in the prepare phase with USE="-pyside2" Closes: https://bugs.gentoo.org/780330 Package-Manager: Portage-3.0.19, Repoman-3.0.3 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
14 lines
401 B
Diff
14 lines
401 B
Diff
diff --git a/qtpy/uic.py b/qtpy/uic.py
|
|
index 07d7a78..84525ab 100644
|
|
--- a/qtpy/uic.py
|
|
+++ b/qtpy/uic.py
|
|
@@ -181,7 +181,7 @@ else:
|
|
|
|
custom_widget_classes = {}
|
|
|
|
- for custom_widget in custom_widgets.getchildren():
|
|
+ for custom_widget in list(custom_widgets):
|
|
|
|
cw_class = custom_widget.find('class').text
|
|
cw_header = custom_widget.find('header').text
|