Skip to content

Commit 81cce1c

Browse files
dnicolodirgommers
authored andcommitted
ENH: do not sort list repeatedly
1 parent 4cbd126 commit 81cce1c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎mesonpy/_editable.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,8 @@ def walk(src: str, exclude_files: Set[str], exclude_dirs: Set[str]) -> Iterator[
225225
relpath = os.path.relpath(dirsrc, src)
226226
if relpath in exclude_dirs:
227227
dirnames.remove(name)
228-
# sort to process directories determninistically
229-
dirnames.sort()
228+
# sort to process directories determninistically
229+
dirnames.sort()
230230
for name in sorted(filenames):
231231
filesrc = os.path.join(root, name)
232232
relpath = os.path.relpath(filesrc, src)

0 commit comments

Comments
 (0)