alexis-mignon / python-flickr-api

A python implementation of the Flickr API
BSD 3-Clause "New" or "Revised" License
367 stars 108 forks source link

Make iterator Walker compatible with Python 3 #89

Closed Flimm closed 6 years ago

Flimm commented 6 years ago

This is required to avoid this error when run under Python 3:

TypeError: iter() returned non-iterator of type 'Walker'

A workaround to get around this bug is to monkey patch Walker, like this:

flickr_api.Walker.__next__ = flickr_api.Walker.next
alexis-mignon commented 6 years ago

Thanks for your contribution :)