Skip to content

Commit e140710

Browse files
authored
Fix unused global warnings from new flake8 7.2.0 (#1609)
Fixes #1608. This PR fixes the code for a new warning added in the newly released flake8: PyCQA/pyflakes#825. --------- Signed-off-by: Partho Sarthi <[email protected]>
1 parent 1d8279d commit e140710

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

user_tools/src/spark_rapids_pytools/common/sys_storage.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright (c) 2023-2024, NVIDIA CORPORATION.
1+
# Copyright (c) 2023-2025, NVIDIA CORPORATION.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -239,7 +239,7 @@ def gen_dir_tree(cls,
239239
dir_count = 0
240240

241241
def inner(dir_p: pathlib.Path, prefix: str = '', level=-1):
242-
nonlocal files_count, dir_count, dir_patterns, file_patterns
242+
nonlocal files_count, dir_count
243243
if not level:
244244
return # 0, stop iterating
245245
sub_items = []

0 commit comments

Comments
 (0)