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/sql.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'sqlparse/sql.py') diff --git a/sqlparse/sql.py b/sqlparse/sql.py index a9b8dd1..2741e83 100644 --- a/sqlparse/sql.py +++ b/sqlparse/sql.py @@ -239,8 +239,9 @@ class TokenList(Token): ignored too. """ # this on is inconsistent, using Comment instead of T.Comment... - funcs = lambda tk: not ((skip_ws and tk.is_whitespace) or - (skip_cm and imt(tk, t=T.Comment, i=Comment))) + funcs = lambda tk: not ((skip_ws and tk.is_whitespace) + or (skip_cm and imt(tk, + t=T.Comment, i=Comment))) return self._token_matching(funcs)[1] def token_next_by(self, i=None, m=None, t=None, idx=-1, end=None): @@ -276,8 +277,9 @@ class TokenList(Token): if idx is None: return None, None idx += 1 # alot of code usage current pre-compensates for this - funcs = lambda tk: not ((skip_ws and tk.is_whitespace) or - (skip_cm and imt(tk, t=T.Comment, i=Comment))) + funcs = lambda tk: not ((skip_ws and tk.is_whitespace) + or (skip_cm and imt(tk, + t=T.Comment, i=Comment))) return self._token_matching(funcs, idx, reverse=_reverse) def token_index(self, token, start=0): -- cgit v1.2.1