diff options
Diffstat (limited to 'sqlparse')
| -rw-r--r-- | sqlparse/filters.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sqlparse/filters.py b/sqlparse/filters.py index bfa757d..99ef80c 100644 --- a/sqlparse/filters.py +++ b/sqlparse/filters.py @@ -219,7 +219,7 @@ class StripWhitespaceFilter(Filter): self._stripws_default(tlist) def process(self, stack, stmt, depth=0): - [self.process(stack, sgroup, depth+1) + [self.process(stack, sgroup, depth + 1) for sgroup in stmt.get_sublists()] self._stripws(stmt) if depth == 0 and stmt.tokens[-1].is_whitespace(): @@ -493,6 +493,7 @@ class SerializerUnicode(Filter): res += '\n' return res + def Tokens2Unicode(stream): result = "" |
