mirror of
https://github.com/SELinuxProject/setools
synced 2025-04-18 05:05:21 +00:00
Remove redundant hashing functions for MLSCategory and MLSSensitivity.
This commit is contained in:
parent
59c74167f2
commit
09eb317996
@ -192,9 +192,6 @@ class MLSCategory(symbol.PolicySymbol):
|
||||
|
||||
"""An MLS category."""
|
||||
|
||||
def __hash__(self):
|
||||
return hash(self._value)
|
||||
|
||||
@property
|
||||
def _value(self):
|
||||
"""
|
||||
@ -222,9 +219,6 @@ class MLSSensitivity(symbol.PolicySymbol):
|
||||
|
||||
"""An MLS sensitivity"""
|
||||
|
||||
def __hash__(self):
|
||||
return hash(self._value)
|
||||
|
||||
def __eq__(self, other):
|
||||
try:
|
||||
return (self._value == other._value)
|
||||
|
Loading…
Reference in New Issue
Block a user