Skip to content

Commit

Permalink
utils: Fix misc deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
tchx84 committed Feb 12, 2024
1 parent 179d73c commit 6384345
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def find_new_name(directory, name, fmt="%s(%d)"):
counter = 1

while os.path.lexists(os.path.join(directory, name)):
components = re.split("(\(\d+\)$)", name)
components = re.split(r"(\(\d+\)$)", name)
if len(components) > 1:
name = "".join(components[:-2])

Expand Down

0 comments on commit 6384345

Please sign in to comment.