Skip to content

Commit

Permalink
Ammend: fb1867e add missing sort
Browse files Browse the repository at this point in the history
  • Loading branch information
kata198 committed Jul 5, 2016
1 parent fb1867e commit e0805ec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg_resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1972,6 +1972,7 @@ def find_on_path(importer, path_item, only=False):

path_item_entries = os.listdir(path_item)
# Reverse so we find the newest version of a distribution,
path_item_entries.sort()
path_item_entries.reverse()
for entry in path_item_entries:
lower = entry.lower()
Expand Down

0 comments on commit e0805ec

Please sign in to comment.