Skip to content
Snippets Groups Projects
Commit 7eeffd3f authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

more ready for Python 3.9

parent 4f0bade8
No related branches found
No related tags found
No related merge requests found
# v0.104:
* more extensive testing (CPython3.8, nightly)
* fixed a bug wherein future_to_notify_on_dead was set_result multiple times
# v0.103:
......
......@@ -13,7 +13,7 @@ def nop(x):
def _get_tagchild(elem, tag):
return [e for e in elem.getchildren() if e.tag == tag]
return [e for e in list(elem) if e.tag == tag]
__all__ = [
......@@ -98,7 +98,7 @@ class _ChildField(_ComputedField):
def get_docs(elem, label):
"""Parse an XML element. Return documentation"""
for kid in elem.getchildren():
for kid in list(elem):
if kid.tag == 'rule':
return get_docs(kid, False)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment