Skip to content

Commit 433b04a

Browse files
ezio-melottihugovk
andauthored
Sort the arbitrary order from os.listdir
Co-authored-by: Hugo van Kemenade <[email protected]>
1 parent ed8f7d8 commit 433b04a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

add_to_pydotorg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ def list_files(
271271
) -> Generator[tuple[str, str, str, bool, str], None, None]:
272272
"""List all of the release's download files."""
273273
reldir = base_version(release)
274-
for rfile in os.listdir(path.join(ftp_root, reldir)):
274+
for rfile in sorted(os.listdir(path.join(ftp_root, reldir))):
275275
if not path.isfile(path.join(ftp_root, reldir, rfile)):
276276
continue
277277

0 commit comments

Comments
 (0)