Skip to content

Commit f36bd22

Browse files
joaocgreisrvagg
authored andcommitted
gyp: add __lt__ to MSVSSolutionEntry
PR-URL: #1904 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Christian Clauss <[email protected]>
1 parent f60ed47 commit f36bd22

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

gyp/pylib/gyp/MSVSNew.py

+3
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ def __cmp__(self, other):
5959
# Sort by name then guid (so things are in order on vs2008).
6060
return cmp((self.name, self.get_guid()), (other.name, other.get_guid()))
6161

62+
def __lt__(self, other):
63+
return self.__cmp__(other) < 0
64+
6265

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

0 commit comments

Comments
 (0)