commit | 47a68f1d44a6de4143dc2e86014425cee8d8aa1a | [log] [tgz] |
---|---|---|
author | Jiri Daněk <jdanek@redhat.com> | Thu Apr 13 20:19:31 2023 +0200 |
committer | Jiri Daněk <jdanek@redhat.com> | Thu Apr 13 21:11:01 2023 +0200 |
tree | 1b61313653ae1b85d4d42ce2a574ae0e27d165f7 | |
parent | d6fc95a972f72e4ea0152669c950775172c1ac7c [diff] |
QPID-8631: use `next()` to progress the iterator in dom.py, so that setup.py runs
diff --git a/mllib/dom.py b/mllib/dom.py index 4762087..49ba0d0 100644 --- a/mllib/dom.py +++ b/mllib/dom.py
@@ -244,7 +244,7 @@ sources = [iter(self.source)] while sources: try: - nd = sources[-1].next() + nd = next(sources[-1]) if isinstance(nd, Tree): sources.append(iter(nd.children)) else: