]> git.ipfire.org Git - thirdparty/babel.git/commit
stop using deprecated ElementTree methods "getchildren()" and "getiterator()"
authorFelix Schwarz <felix.schwarz@oss.schwarz.eu>
Tue, 5 May 2020 07:58:01 +0000 (09:58 +0200)
committerAarni Koskela <akx@iki.fi>
Tue, 5 May 2020 08:15:20 +0000 (11:15 +0300)
commit167b71421f113e2210e4deefef5020402492e5be
treef07b824c342a2ea70eb1e1ce6f21233b5c4ce859
parent4ce6f13412705949f6d74579f15cad15cf00fed7
stop using deprecated ElementTree methods "getchildren()" and "getiterator()"

Both methods were removed in Python 3.9 as mentioned in the release notes:

> Methods getchildren() and getiterator() of classes ElementTree and Element in
> the ElementTree module have been removed. They were deprecated in Python 3.2.
> Use iter(x) or list(x) instead of x.getchildren() and x.iter() or
> list(x.iter()) instead of x.getiterator().
scripts/import_cldr.py