Skip to content

Commit b87ae89

Browse files
committed
Make reindent more robust regarding max recursion errors.
1 parent 917d8e9 commit b87ae89

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sqlparse/filters/reindent.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,8 @@ def _process_case(self, tlist):
168168
def _process_default(self, tlist, stmts=True):
169169
self._split_statements(tlist) if stmts else None
170170
self._split_kwds(tlist)
171-
[self._process(sgroup) for sgroup in tlist.get_sublists()]
171+
for sgroup in tlist.get_sublists():
172+
self._process(sgroup)
172173

173174
def process(self, stmt):
174175
self._curr_stmt = stmt

0 commit comments

Comments
 (0)