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 <pebenito@ieee.org>
This commit is contained in:
Chris PeBenito 2019-10-08 15:45:27 -04:00
parent 3562ba3ca4
commit dffe3df251
1 changed files with 1 additions and 1 deletions

View File

@ -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: