From 7a78bd0feea0610d8b0988c751fd67027ab181cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Reis?= Date: Wed, 2 Oct 2019 20:20:56 +0100 Subject: [PATCH] gyp: add __lt__ to MSVSSolutionEntry PR-URL: https://github.com/nodejs/node-gyp/pull/1904 Reviewed-By: Richard Lau Reviewed-By: Christian Clauss --- gyp/pylib/gyp/MSVSNew.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gyp/pylib/gyp/MSVSNew.py b/gyp/pylib/gyp/MSVSNew.py index 9b64e2c1c8..76c4b95c0c 100644 --- a/gyp/pylib/gyp/MSVSNew.py +++ b/gyp/pylib/gyp/MSVSNew.py @@ -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."""