Skip to content

Commit

Permalink
refactor a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
demitryfly committed Jul 29, 2024
1 parent 5ebab6f commit 1fae5ba
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions simple_ddl_parser/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,11 @@ def remove_par(p_list: List[Union[str, Any]]) -> List[Union[str, Any]]:
Warn: p_list may contain unhashable types, such as 'dict'.
"""
i = j = 0
while i < len(p_list):
j = 0
for i in range(len(p_list)):
if p_list[i] not in _parentheses:
p_list[j] = p_list[i]
j += 1
i += 1
while j < len(p_list):
p_list.pop()
return p_list
Expand Down

0 comments on commit 1fae5ba

Please sign in to comment.