summaryrefslogtreecommitdiff
path: root/django/utils/tree.py
diff options
context:
space:
mode:
authorNick Pope <nick@nickpope.me.uk>2021-07-19 05:38:35 +0100
committerGitHub <noreply@github.com>2021-07-19 06:38:35 +0200
commite21daa4e4c0200e35435a6ae0b400ec8480f4e94 (patch)
treeb381d3a1d9d6f5491629fec1ef4bf3b5319b75f4 /django/utils/tree.py
parentf3825ee0503b7077da98719481eb9ac61ce4ef48 (diff)
Removed unnecessary tuple construction in Node.__eq__().
Diffstat (limited to 'django/utils/tree.py')
-rw-r--r--django/utils/tree.py3
1 files changed, 2 insertions, 1 deletions
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
)