From dffe3df251bd967c790203963168bbe7c6513566 Mon Sep 17 00:00:00 2001 From: Chris PeBenito Date: Tue, 8 Oct 2019 15:45:27 -0400 Subject: [PATCH] fc_sort.py: Use "==" for comparing integers. "is" is for testing two references are the same object. The fact that this worked is specific to the Python implementation. Signed-off-by: Chris PeBenito --- support/fc_sort.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/support/fc_sort.py b/support/fc_sort.py index 9e38a9ebe..3a35553bf 100644 --- a/support/fc_sort.py +++ b/support/fc_sort.py @@ -108,7 +108,7 @@ class FileContext(): return 0 def __lt__(self, other): - return self._compare(self, other) is -1 + return self._compare(self, other) == -1 def __str__(self): if self.file_type: