Don't raise StopIteration in generators, no longer allowed with Python 3.7. Fixes #3622
Don't raise StopIteration in generators, no longer allowed with Python 3.7. Fixes #3622

Raising StopIteration from a generator has been deprecated with Python 3.5 and is now
an error with Python 3.7: https://docs.python.org/3.8/library/exceptions.html#StopIteration

Just use return instead.

MathieuDuponchelle/meson,mesonbuild/meson,jeandet/meson,jeandet/meson,pexip/meson,MathieuDuponchelle/meson,QuLogic/meson,QuLogic/meson,jeandet/meson,becm/meson,jpakkane/meson,QuLogic/meson,QuLogic/meson,pexip/meson,becm/meson,MathieuDuponchelle/meson,mesonbuild/meson,becm/meson,pexip/meson,becm/meson,jpakkane/meson,jpakkane/meson,jpakkane/meson,MathieuDuponchelle/meson,becm/meson,jeandet/meson,MathieuDuponchelle/meson,MathieuDuponchelle/meson,mesonbuild/meson,thiblahute/meson,pexip/meson,QuLogic/meson,jeandet/meson,QuLogic/meson,mesonbuild/meson,thiblahute/meson,thiblahute/meson,thiblahute/meson,becm/meson,jpakkane/meson,becm/meson,thiblahute/meson,jeandet/meson,becm/meson,QuLogic/meson,mesonbuild/meson,jpakkane/meson,thiblahute/meson,jeandet/meson,jeandet/meson,pexip/meson,jeandet/meson,mesonbuild/meson,jpakkane/meson,pexip/meson,becm/meson,MathieuDuponchelle/meson,becm/meson,pexip/meson,pexip/meson,mesonbuild/meson,thiblahute/meson,pexip/meson,mesonbuild/meson,mesonbuild/meson,thiblahute/meson,MathieuDuponchelle/meson,MathieuDuponchelle/meson,pexip/meson,QuLogic/meson,jpakkane/meson,thiblahute/meson,jpakkane/meson,QuLogic/meson,mesonbuild/meson