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 <riclau@uk.ibm.com>
Reviewed-By: Christian Clauss <cclauss@me.com>
  • Loading branch information
joaocgreis authored and rvagg committed Oct 4, 2019
1 parent 735d961 commit 01c46ee
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 01c46ee

Please sign in to comment.