commit: f88425ee9c7b0d1586d770c00bba35327fbb55da
Author: Chris PeBenito <pebenito <AT> ieee <DOT> org>
AuthorDate: Tue Oct 8 19:45:27 2019 +0000
Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org>
CommitDate: Mon Dec 16 13:13:11 2019 +0000
URL:
https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=f88425ee
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 <AT> ieee.org>
Signed-off-by: Jason Zaman <perfinion <AT> gentoo.org>
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 9e38a9eb..3a35553b 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: