mirror of
https://github.com/SELinuxProject/refpolicy
synced 2025-02-09 08:07:33 +00:00
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:
parent
3562ba3ca4
commit
dffe3df251
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user