sybrenstuvel / flickrapi

Python Flickr API implementation
https://stuvel.eu/flickrapi
Other
155 stars 33 forks source link

Python 3.9 compatibility: remove call to missing ElementTree function #130

Closed tedd4u closed 3 years ago

tedd4u commented 3 years ago

getchildren() was deprecated in 3.2 and removed in 3.9.

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(). (Contributed by Serhiy Storchaka in bpo-36543.)

from https://docs.python.org/3/whatsnew/3.9.html

kannes commented 3 years ago

I can confirm that this seems to work fine. Thank you!

anyu commented 11 months ago

Hi @randomcascade, would love this fix -- is there an eta for getting it released?

22anirudhk commented 7 months ago

Bumping - would be great to have this in the pip package as some other packages depend on it.