Skip to content

Commit 3551168

Browse files
committed
Revert "freeze.py: del unused variable"
I now believe this is a mistake, as modifying the output vars during an os.walk can change its behavior. This reverts commit 045ce25.
1 parent 0fdc1bd commit 3551168

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

freeze.py

-1
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@
130130
def find_files(directory, patterns):
131131
""" Recursively find all files in a folder tree """
132132
for root, dirs, files in os.walk(directory):
133-
del dirs # not used
134133
for basename in files:
135134
if ".pyc" not in basename and "__pycache__" not in basename:
136135
for pattern in patterns:

0 commit comments

Comments
 (0)