Changed ImagesPageGenerator to return imagePage objects.
Note that you did not changed ImagesPageGenerator here :
- for page in pageWithImages.imagelinks(followRedirects = False, loose = True): - yield page + for imagePage in pageWithImages.imagelinks(followRedirects = False, loose = True): + yield imagePage
It does not change a thing, it's just modifying the variable name. You could replace imagePage by "foo" or "bar" and it would work exactly the same. :)
ImagesPageGenerator *was* already yielding ImagePage objects before that commit, because wikipedia.Page::imagelinks has always been yielding ImagePage objects.