From 1c3f9291f4b79df410947b6410c88077d5162a22 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Fri, 23 Oct 2015 22:19:56 -0400 Subject: Fix PendingDeprecationWarning on Python 3.5. Avoid "PendingDeprecationWarning: generator 'group_identifier.._consume_cycle' raised StopIteration." --- sqlparse/engine/grouping.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sqlparse') 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 -- cgit v1.2.1