Skip to content

Commit

Permalink
gyp: add __lt__ to MSVSSolutionEntry
Browse files Browse the repository at this point in the history
PR-URL: #1904
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: Christian Clauss <[email protected]>
  • Loading branch information
joaocgreis authored and rvagg committed Oct 3, 2019
1 parent f60ed47 commit f36bd22
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gyp/pylib/gyp/MSVSNew.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ def __cmp__(self, other):
# Sort by name then guid (so things are in order on vs2008).
return cmp((self.name, self.get_guid()), (other.name, other.get_guid()))

def __lt__(self, other):
return self.__cmp__(other) < 0


class MSVSFolder(MSVSSolutionEntry):
"""Folder in a Visual Studio project or solution."""
Expand Down

0 comments on commit f36bd22

Please sign in to comment.