/usr/lib/python3/dist-packages/defcon/tools/fuzzyNumber.py is in python3-defcon 0.3.5-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | class FuzzyNumber(object):
def __init__(self, value, threshold):
self.value = value
self.threshold = threshold
def __repr__(self):
return "[%f %f]" % (self.value, self.threshold)
def __lt__(self, other):
if hasattr(other, "value"):
if abs(self.value - other.value) < self.threshold:
return False
else:
return self.value < other.value
return self.value < other
|