From 9791f591f579e3f7106f1616293f0e034f66cd8a Mon Sep 17 00:00:00 2001 From: MustafaJafar Date: Tue, 11 Feb 2025 20:30:26 +0200 Subject: [PATCH] use `f` instead of `file` --- client/ayon_core/lib/path_tools.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/ayon_core/lib/path_tools.py b/client/ayon_core/lib/path_tools.py index 3826f1383e..f3c35d998b 100644 --- a/client/ayon_core/lib/path_tools.py +++ b/client/ayon_core/lib/path_tools.py @@ -136,8 +136,8 @@ def version_up(filepath): index += len(new_label) clash_basename = clash_basename[:index] - for file in os.scandir(dirname): - if file.name.endswith(ext) and file.name.startswith(clash_basename): + for f in os.scandir(dirname): + if f.name.endswith(ext) and f.name.startswith(clash_basename): log.info("Skipping existing version %s" % new_label) return version_up(new_filename)