Skip to content

Commit 96a67e2

Browse files
committed
Code cleanup.
1 parent 1a3bfbd commit 96a67e2

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

sqlparse/engine/statement_splitter.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,11 @@ def process(self, stream):
121121
self.consume_ws = True
122122
elif ttype is T.Keyword and value.split()[0] == 'GO':
123123
self.consume_ws = True
124-
elif (ttype not in (T.Whitespace, T.Comment.Single, T.Comment.Multiline)
124+
elif (ttype not in (T.Whitespace, T.Comment.Single,
125+
T.Comment.Multiline)
125126
and not (ttype is T.Keyword and value.upper() == 'BEGIN')):
126-
# Reset _seen_begin if we see a non-whitespace, non-comment token
127-
# but not for BEGIN itself (which just set the flag)
127+
# Reset _seen_begin if we see a non-whitespace, non-comment
128+
# token but not for BEGIN itself (which just set the flag)
128129
self._seen_begin = False
129130

130131
# Yield pending statement (if any)

0 commit comments

Comments
 (0)