summaryrefslogtreecommitdiff
path: root/sqlparse
diff options
context:
space:
mode:
authorAndi Albrecht <albrecht.andi@gmail.com>2016-10-25 11:13:57 +0200
committerAndi Albrecht <albrecht.andi@gmail.com>2016-10-25 11:13:57 +0200
commitb87ae89e8610f76c9902c46644bdca6fd4e83607 (patch)
tree275633c3b7ff8fd894c64372685689157652f8a9 /sqlparse
parent917d8e9474a289e741567c2849e6cff9625dfe28 (diff)
downloadsqlparse-b87ae89e8610f76c9902c46644bdca6fd4e83607.tar.gz
Make reindent more robust regarding max recursion errors.
Diffstat (limited to 'sqlparse')
-rw-r--r--sqlparse/filters/reindent.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/sqlparse/filters/reindent.py b/sqlparse/filters/reindent.py
index bf1f139..a7f78be 100644
--- a/sqlparse/filters/reindent.py
+++ b/sqlparse/filters/reindent.py
@@ -168,7 +168,8 @@ class ReindentFilter(object):
def _process_default(self, tlist, stmts=True):
self._split_statements(tlist) if stmts else None
self._split_kwds(tlist)
- [self._process(sgroup) for sgroup in tlist.get_sublists()]
+ for sgroup in tlist.get_sublists():
+ self._process(sgroup)
def process(self, stmt):
self._curr_stmt = stmt