From b87d66985b8caef79d743a4aba97bd305bb4ec8f Mon Sep 17 00:00:00 2001 From: Ryan Kirkbride Date: Wed, 7 Aug 2019 10:49:01 +0100 Subject: [PATCH] Update Key.py Don't use "int" on eq methods, propagate this forward to handle PGroups --- FoxDot/lib/Key.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/FoxDot/lib/Key.py b/FoxDot/lib/Key.py index 2ed96796..12f7c2b7 100644 --- a/FoxDot/lib/Key.py +++ b/FoxDot/lib/Key.py @@ -162,32 +162,32 @@ def __rxor__(self, other): @convert_pattern_args def __eq__(self, other): - function = lambda value: int(value == other) + function = lambda value: value == other return self.transform(function) @convert_pattern_args def __ne__(self, other): - function = lambda value: int(value != other) + function = lambda value: (value != other) return self.transform(function) @convert_pattern_args def __gt__(self, other): - function = lambda value: int(value > other) + function = lambda value: (value > other) return self.transform(function) @convert_pattern_args def __ge__(self, other): - function = lambda value: int(value >= other) + function = lambda value: (value >= other) return self.transform(function) @convert_pattern_args def __lt__(self, other): - function = lambda value: int(value < other) + function = lambda value: (value < other) return self.transform(function) @convert_pattern_args def __le__(self, other): - function = lambda value: int(value <= other) + function = lambda value: (value <= other) return self.transform(function) def __abs__(self):