From 6a7eb243274e1f17c0bb99d65272c4313b9ee08c Mon Sep 17 00:00:00 2001 From: Andreas Albrecht Date: Sun, 10 Mar 2019 07:31:37 +0100 Subject: Code cleanup. --- sqlparse/engine/grouping.py | 4 ++-- sqlparse/engine/statement_splitter.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'sqlparse/engine') 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'): -- cgit v1.2.1