summaryrefslogtreecommitdiff
path: root/sqlparse/sql.py
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/sql.py
parentbc84fdc0afdb966280d95277e1c1cddeba20ae5a (diff)
downloadsqlparse-6a7eb243274e1f17c0bb99d65272c4313b9ee08c.tar.gz
Code cleanup.
Diffstat (limited to 'sqlparse/sql.py')
-rw-r--r--sqlparse/sql.py10
1 files changed, 6 insertions, 4 deletions
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):