Skip to content

Commit

Permalink
- one more instance of sorting naturally by class elements instead of…
Browse files Browse the repository at this point in the history
… attrgetter
  • Loading branch information
seb26 committed Mar 23, 2019
1 parent d6ece25 commit 7b38ed0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mhl-compare.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,7 @@ def checkDelta(self, listA=False, listB=False):

# Quickly clean Nonexistent objects out if they exist
deltaClean = [ h for h in delta if not isinstance(h,HashNonexistent) ]
# Sort by filepath
deltaClean.sort(key=attrgetter('filepath'))
deltaClean.sort()

for hash in deltaClean:

Expand Down

0 comments on commit 7b38ed0

Please sign in to comment.