diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2015-11-30 12:35:10 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2015-11-30 12:35:10 -0500 |
commit | a058233f55b293919c02116b66336fae9bc38700 (patch) | |
tree | c59e406afb496109f9824154752c0df710a95a55 | |
parent | 03a3b5ffd3027c79ce9b17b9388fd074e69b889d (diff) | |
parent | 6ab120558078bdcbfbe06d2ca55bd7a0d417bbb4 (diff) | |
download | sqlalchemy-a058233f55b293919c02116b66336fae9bc38700.tar.gz |
Merge remote-tracking branch 'origin/pr/211'
-rw-r--r-- | lib/sqlalchemy/engine/result.py | 2 | ||||
-rw-r--r-- | lib/sqlalchemy/ext/associationproxy.py | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/sqlalchemy/engine/result.py b/lib/sqlalchemy/engine/result.py index 74a0fce77..7d1425c28 100644 --- a/lib/sqlalchemy/engine/result.py +++ b/lib/sqlalchemy/engine/result.py @@ -712,7 +712,7 @@ class ResultProxy(object): while True: row = self.fetchone() if row is None: - raise StopIteration + return else: yield row diff --git a/lib/sqlalchemy/ext/associationproxy.py b/lib/sqlalchemy/ext/associationproxy.py index 29064ef27..31f16287d 100644 --- a/lib/sqlalchemy/ext/associationproxy.py +++ b/lib/sqlalchemy/ext/associationproxy.py @@ -603,7 +603,7 @@ class _AssociationList(_AssociationCollection): for member in self.col: yield self._get(member) - raise StopIteration + return def append(self, value): item = self._create(value) @@ -907,7 +907,7 @@ class _AssociationSet(_AssociationCollection): """ for member in self.col: yield self._get(member) - raise StopIteration + return def add(self, value): if value not in self: |