diff --git a/pyside2uic/uiparser.py b/pyside2uic/uiparser.py index da1d74449..966afd09c 100644 --- a/pyside2uic/uiparser.py +++ b/pyside2uic/uiparser.py @@ -783,7 +783,7 @@ def readResources(self, elem): Read a "resources" tag and add the module to import to the parser's list of them. """ - for include in elem.getiterator("include"): + for include in elem.iter("include"): loc = include.attrib.get("location") # Assume our convention for naming the Python files generated by