mirror of
https://github.com/django/django.git
synced 2025-03-31 11:37:06 +00:00
Removed unnecessary tuple construction in Node.__eq__().
This commit is contained in:
parent
f3825ee050
commit
e21daa4e4c
@ -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
|
||||
)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user