diff options
author | Andi Albrecht <albrecht.andi@gmail.com> | 2016-04-03 10:20:14 +0200 |
---|---|---|
committer | Andi Albrecht <albrecht.andi@gmail.com> | 2016-04-03 10:20:14 +0200 |
commit | ee5799fbb60e9739e42922861cd9f24990fc52dd (patch) | |
tree | 6feb37f3a6435ad9617ca36aa99428201f80b79c /sqlparse/sql.py | |
parent | 03594bb7df4f01b9c98610f24e3988101a0b4aca (diff) | |
download | sqlparse-ee5799fbb60e9739e42922861cd9f24990fc52dd.tar.gz |
Code cleanup.
Diffstat (limited to 'sqlparse/sql.py')
-rw-r--r-- | sqlparse/sql.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sqlparse/sql.py b/sqlparse/sql.py index 9c0497a..f357572 100644 --- a/sqlparse/sql.py +++ b/sqlparse/sql.py @@ -491,9 +491,11 @@ class Statement(TokenList): # The WITH keyword should be followed by either an Identifier or # an IdentifierList containing the CTE definitions; the actual # DML keyword (e.g. SELECT, INSERT) will follow next. - idents = self.token_next(self.token_index(first_token), skip_ws=True) + idents = self.token_next( + self.token_index(first_token), skip_ws=True) if isinstance(idents, (Identifier, IdentifierList)): - dml_keyword = self.token_next(self.token_index(idents), skip_ws=True) + dml_keyword = self.token_next( + self.token_index(idents), skip_ws=True) if dml_keyword.ttype == T.Keyword.DML: return dml_keyword.normalized # Hmm, probably invalid syntax, so return unknown. |