diff options
| author | Victor Uriarte <victor.m.uriarte@intel.com> | 2016-06-06 21:24:01 -0700 |
|---|---|---|
| committer | Victor Uriarte <victor.m.uriarte@intel.com> | 2016-06-09 20:36:59 -0700 |
| commit | 2fbd56a797fd4f7eeff4cf8d053cab63b85190f7 (patch) | |
| tree | f444d395061ab954d3c9d714eaa9523ce996c437 /sqlparse | |
| parent | c13b9bf5c1349d159dd7a98c846386fa5b4e8856 (diff) | |
| download | sqlparse-2fbd56a797fd4f7eeff4cf8d053cab63b85190f7.tar.gz | |
Remove returns
Diffstat (limited to 'sqlparse')
| -rw-r--r-- | sqlparse/filters/aligned_indent.py | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/sqlparse/filters/aligned_indent.py b/sqlparse/filters/aligned_indent.py index b8d28da..5921a3b 100644 --- a/sqlparse/filters/aligned_indent.py +++ b/sqlparse/filters/aligned_indent.py @@ -36,7 +36,7 @@ class AlignedIndentFilter(object): tlist.tokens.pop(0) # process the main query body - return self._process(sql.TokenList(tlist.tokens)) + self._process(sql.TokenList(tlist.tokens)) def _process_parenthesis(self, tlist): if not tlist.token_next_by(m=(T.DML, 'SELECT')): @@ -54,13 +54,8 @@ class AlignedIndentFilter(object): self.indent += sub_indent # process the inside of the parantheses - tlist.tokens = ( - [tlist.tokens[0]] + - self._process(sql.TokenList(tlist._groupable_tokens)).tokens + - [tlist.tokens[-1]] - ) + self._process_default(tlist) self.indent -= sub_indent - return tlist def _process_identifierlist(self, tlist): # columns being selected @@ -149,12 +144,11 @@ class AlignedIndentFilter(object): self.indent += indent_offset self._process(sgroup) self.indent -= indent_offset - return tlist def _process(self, tlist): func_name = '_process_{cls}'.format(cls=type(tlist).__name__) func = getattr(self, func_name.lower(), self._process_default) - return func(tlist) + func(tlist) def process(self, stmt): self._process(stmt) |
