diff options
author | pgjones <philip.graham.jones@googlemail.com> | 2015-10-30 20:20:58 +0000 |
---|---|---|
committer | pgjones <philip.graham.jones@googlemail.com> | 2015-10-30 20:20:58 +0000 |
commit | 6ab120558078bdcbfbe06d2ca55bd7a0d417bbb4 (patch) | |
tree | 9b51224766e3f5faab2d9e313f704187b01edde0 /lib/sqlalchemy/engine/default.py | |
parent | 98c1dcc6bcade313a254fe11e8efa3c5b5ad959e (diff) | |
download | sqlalchemy-pr/211.tar.gz |
Change generator termination from StopIteration to return.pr/211
From [PEP 479](https://www.python.org/dev/peps/pep-0479/) the correct way to
terminate a generator is to return (which implicitly raises StopIteration)
rather than raise StopIteration.
Without this change using sqlalchemy in python 3.5 or greater results in
these warnings
PendingDeprecationWarning: generator '__iter__' raised StopIteration
which this commit should remove.
Diffstat (limited to 'lib/sqlalchemy/engine/default.py')
0 files changed, 0 insertions, 0 deletions