aboutsummaryrefslogtreecommitdiffhomepage
path: root/infra/utils.py
diff options
context:
space:
mode:
authorGravatar Leo Neat <lneat@google.com>2020-04-01 10:10:51 -0700
committerGravatar GitHub <noreply@github.com>2020-04-01 10:10:51 -0700
commit9ab8312c8cc0e6db25ba2483ab6a913123ec6287 (patch)
tree0e47fc860478c18526a0eb32da41488938903ad8 /infra/utils.py
parentbe91239b10fedc5467c192d7923ca360b3234a19 (diff)
Remove walk from utils.py (#3561)
Removing useless os.walk from utils.py.
Diffstat (limited to 'infra/utils.py')
-rw-r--r--infra/utils.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/infra/utils.py b/infra/utils.py
index 3d9a620a..fa5aed20 100644
--- a/infra/utils.py
+++ b/infra/utils.py
@@ -78,9 +78,9 @@ def get_fuzz_targets(path):
if not os.path.exists(path):
return []
fuzz_target_paths = []
- for root, _, _ in os.walk(path):
- for filename in os.listdir(path):
- file_path = os.path.join(root, filename)
+ for root, _, fuzzers in os.walk(path):
+ for fuzzer in fuzzers:
+ file_path = os.path.join(root, fuzzer)
if is_fuzz_target_local(file_path):
fuzz_target_paths.append(file_path)