From e21daa4e4c0200e35435a6ae0b400ec8480f4e94 Mon Sep 17 00:00:00 2001 From: Nick Pope Date: Mon, 19 Jul 2021 05:38:35 +0100 Subject: [PATCH] Removed unnecessary tuple construction in Node.__eq__(). --- django/utils/tree.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/django/utils/tree.py b/django/utils/tree.py index af17be939c..def1c78577 100644 --- a/django/utils/tree.py +++ b/django/utils/tree.py @@ -68,7 +68,8 @@ class Node: def __eq__(self, other): return ( self.__class__ == other.__class__ and - (self.connector, self.negated) == (other.connector, other.negated) and + self.connector == other.connector and + self.negated == other.negated and self.children == other.children )