Skip to content

Commit 736077e

Browse files
committed
Sort the arbitrary order from os.listdir
1 parent 37fa852 commit 736077e

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
@@ -300,7 +300,7 @@ def list_files(
300300
) -> Generator[tuple[str, str, str, bool, str], None, None]:
301301
"""List all of the release's download files."""
302302
reldir = base_version(release)
303-
for rfile in os.listdir(path.join(ftp_root, reldir)):
303+
for rfile in sorted(os.listdir(path.join(ftp_root, reldir))):
304304
if not path.isfile(path.join(ftp_root, reldir, rfile)):
305305
continue
306306

0 commit comments

Comments
 (0)