From 2fbd56a797fd4f7eeff4cf8d053cab63b85190f7 Mon Sep 17 00:00:00 2001 From: Victor Uriarte Date: Mon, 6 Jun 2016 21:24:01 -0700 Subject: Remove returns --- sqlparse/filters/aligned_indent.py | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'sqlparse') 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) -- cgit v1.2.1