Skip to content

Commit 1fae5ba

Browse files
committed
refactor a bit
1 parent 5ebab6f commit 1fae5ba

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

simple_ddl_parser/utils.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,11 @@ def remove_par(p_list: List[Union[str, Any]]) -> List[Union[str, Any]]:
2222
2323
Warn: p_list may contain unhashable types, such as 'dict'.
2424
"""
25-
i = j = 0
26-
while i < len(p_list):
25+
j = 0
26+
for i in range(len(p_list)):
2727
if p_list[i] not in _parentheses:
2828
p_list[j] = p_list[i]
2929
j += 1
30-
i += 1
3130
while j < len(p_list):
3231
p_list.pop()
3332
return p_list

0 commit comments

Comments
 (0)