From 0d495a3ebc0b51bff7e756736a7ce8b12d116b68 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Sun, 16 Jun 2024 02:42:27 +0000 Subject: [PATCH] Aavoid incomparable assertion when using mixed src/no-src rules --- genrules.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/genrules.py b/genrules.py index 69fa588..1e9c978 100755 --- a/genrules.py +++ b/genrules.py @@ -350,7 +350,7 @@ class RuleNode: if o == ORD_LESS: return True - return self.action < other.action + return [a for a in self.action if type(a) != IpRule] < [b for b in other.action if type(b) != IpRule] def maybe_join(self, neighbor): if self.ty == RuleAction.CONDITIONS and neighbor.ty == RuleAction.CONDITIONS: -- 2.39.5