From: Oleg Broytman Date: Wed, 28 Sep 2016 23:38:03 +0000 (+0300) Subject: Use `return` instead `raise StopIteration` X-Git-Tag: 0.0.8~18 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=406e4920528c81461e2cbaff6f1c36c29b8167f5;p=sqlconvert.git Use `return` instead `raise StopIteration` --- diff --git a/sqlconvert/process_tokens.py b/sqlconvert/process_tokens.py index 6bd618b..8cf1fe5 100644 --- a/sqlconvert/process_tokens.py +++ b/sqlconvert/process_tokens.py @@ -64,7 +64,7 @@ class StatementGrouper(object): for stmt in self.statements: yield stmt self.statements = [] - raise StopIteration + return def close(self): if not self.lines: