mirror of
https://github.com/SELinuxProject/setools
synced 2025-04-28 14:20:09 +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."""
|
"""An MLS category."""
|
||||||
|
|
||||||
def __hash__(self):
|
|
||||||
return hash(self._value)
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def _value(self):
|
def _value(self):
|
||||||
"""
|
"""
|
||||||
@ -222,9 +219,6 @@ class MLSSensitivity(symbol.PolicySymbol):
|
|||||||
|
|
||||||
"""An MLS sensitivity"""
|
"""An MLS sensitivity"""
|
||||||
|
|
||||||
def __hash__(self):
|
|
||||||
return hash(self._value)
|
|
||||||
|
|
||||||
def __eq__(self, other):
|
def __eq__(self, other):
|
||||||
try:
|
try:
|
||||||
return (self._value == other._value)
|
return (self._value == other._value)
|
||||||
|
Loading…
Reference in New Issue
Block a user