]> git.phdru.name Git - sqlconvert.git/commitdiff
Use `return` instead `raise StopIteration`
authorOleg Broytman <phd@phdru.name>
Wed, 28 Sep 2016 23:38:03 +0000 (02:38 +0300)
committerOleg Broytman <phd@phdru.name>
Wed, 28 Sep 2016 23:38:03 +0000 (02:38 +0300)
sqlconvert/process_tokens.py

index 6bd618b6af1ce33f14588d0d6c4f11323bfe37af..8cf1fe5e73ffd005a717115fdbf8c114ffe24783 100644 (file)
@@ -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: