summaryrefslogtreecommitdiff
path: root/sqlparse/engine
diff options
context:
space:
mode:
authorAndreas Albrecht <andreas.albrecht@Admins-MacBook-Pro.local>2019-03-10 07:31:37 +0100
committerAndreas Albrecht <andreas.albrecht@Admins-MacBook-Pro.local>2019-03-10 07:31:37 +0100
commit6a7eb243274e1f17c0bb99d65272c4313b9ee08c (patch)
tree001bc90e42e1595995d396ee13dafc34e9571686 /sqlparse/engine
parentbc84fdc0afdb966280d95277e1c1cddeba20ae5a (diff)
downloadsqlparse-6a7eb243274e1f17c0bb99d65272c4313b9ee08c.tar.gz
Code cleanup.
Diffstat (limited to 'sqlparse/engine')
-rw-r--r--sqlparse/engine/grouping.py4
-rw-r--r--sqlparse/engine/statement_splitter.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/sqlparse/engine/grouping.py b/sqlparse/engine/grouping.py
index 2cc7601..5ff819c 100644
--- a/sqlparse/engine/grouping.py
+++ b/sqlparse/engine/grouping.py
@@ -225,8 +225,8 @@ def group_identifier_list(tlist):
m_role = T.Keyword, ('null', 'role')
sqlcls = (sql.Function, sql.Case, sql.Identifier, sql.Comparison,
sql.IdentifierList, sql.Operation)
- ttypes = (T_NUMERICAL + T_STRING + T_NAME +
- (T.Keyword, T.Comment, T.Wildcard))
+ ttypes = (T_NUMERICAL + T_STRING + T_NAME
+ + (T.Keyword, T.Comment, T.Wildcard))
def match(token):
return token.match(T.Punctuation, ',')
diff --git a/sqlparse/engine/statement_splitter.py b/sqlparse/engine/statement_splitter.py
index d610b5e..444b46a 100644
--- a/sqlparse/engine/statement_splitter.py
+++ b/sqlparse/engine/statement_splitter.py
@@ -65,8 +65,8 @@ class StatementSplitter(object):
self._begin_depth = max(0, self._begin_depth - 1)
return -1
- if (unified in ('IF', 'FOR', 'WHILE') and
- self._is_create and self._begin_depth > 0):
+ if (unified in ('IF', 'FOR', 'WHILE')
+ and self._is_create and self._begin_depth > 0):
return 1
if unified in ('END IF', 'END FOR', 'END WHILE'):