Skip to content

Commit

Permalink
Sort os.listdir output
Browse files Browse the repository at this point in the history
See https://reproducible-builds.org/ for why this is good.

This patch was done while working on reproducible builds for openSUSE.
  • Loading branch information
bmwiedemann committed Jan 29, 2024
1 parent 2187351 commit 6ee1de0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Modules/posixmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -4259,6 +4259,7 @@ _posix_listdir(path_t *path, PyObject *list)
Py_END_ALLOW_THREADS
}

PyList_Sort(list);
return list;
} /* end of _posix_listdir */
#endif /* which OS */
Expand Down

0 comments on commit 6ee1de0

Please sign in to comment.