summaryrefslogtreecommitdiff
path: root/sqlparse
diff options
context:
space:
mode:
authorAndi Albrecht <albrecht.andi@gmail.com>2015-10-24 08:17:10 +0200
committerAndi Albrecht <albrecht.andi@gmail.com>2015-10-24 08:17:10 +0200
commit841388fc22da9f6e58940e72d0da5d1186e3ec14 (patch)
tree63ecaa75226076c217087bb5d6458d59ca12b8ce /sqlparse
parent9f638ed86f1103b44b9c061500f7133c29ba8676 (diff)
parent1c3f9291f4b79df410947b6410c88077d5162a22 (diff)
downloadsqlparse-841388fc22da9f6e58940e72d0da5d1186e3ec14.tar.gz
Merge pull request #202 from timgraham/generator-stopiteration
Fix PendingDeprecationWarning on Python 3.5.
Diffstat (limited to 'sqlparse')
-rw-r--r--sqlparse/engine/grouping.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sqlparse/engine/grouping.py b/sqlparse/engine/grouping.py
index 132d06f..c8c2415 100644
--- a/sqlparse/engine/grouping.py
+++ b/sqlparse/engine/grouping.py
@@ -180,7 +180,7 @@ def group_identifier(tlist):
else:
if isinstance(t, sql.Comment) and t.is_multiline():
yield t
- raise StopIteration
+ return
def _next_token(tl, i):
# chooses the next token. if two tokens are found then the