Fix: Use return x instead of raise StopIteration(x).
Fix: Use return x instead of raise StopIteration(x).

See PEP 479 and https://stackoverflow.com/questions/16780002/return-in-generator-together-with-yield-in-python-3-3.

andreikop/qutepart,andreikop/qutepart,andreikop/qutepart,andreikop/qutepart,hlamer/qutepart,hlamer/qutepart,hlamer/qutepart,hlamer/qutepart,hlamer/qutepart,hlamer/qutepart,andreikop/qutepart,hlamer/qutepart,hlamer/qutepart,hlamer/qutepart,andreikop/qutepart,andreikop/qutepart,hlamer/qutepart,andreikop/qutepart,andreikop/qutepart,andreikop/qutepart,hlamer/qutepart,andreikop/qutepart