Skip to content

Commit

Permalink
Make reindent more robust regarding max recursion errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
andialbrecht committed Oct 25, 2016
1 parent 917d8e9 commit b87ae89
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sqlparse/filters/reindent.py
Expand Up @@ -168,7 +168,8 @@ def _process_case(self, tlist):
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
Expand Down

0 comments on commit b87ae89

Please sign in to comment.