gentoo/dev-python/QtPy/files/QtPy-1.9.0-python3_9.patch
Andrew Ammerlaan 83cdaf684e
dev-python/QtPy: drop netwrokauth and webkit flag, add py3.{9,10}
- 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>
2021-06-01 19:07:08 +02:00

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