mirror of
https://github.com/SELinuxProject/setools
synced 2025-03-30 15:26:23 +00:00
Merge pull request #58 from kamino/master
policyrep: sort categories using their index
This commit is contained in:
commit
fd5151a4bd
@ -244,6 +244,10 @@ class Category(BaseMLSComponent):
|
||||
stmt += ";"
|
||||
return stmt
|
||||
|
||||
def __lt__(self, other):
|
||||
"""Comparison based on their index instead of their names."""
|
||||
return self._value < other._value
|
||||
|
||||
|
||||
class Sensitivity(BaseMLSComponent):
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user