summaryrefslogtreecommitdiff
path: root/django/test/html.py
diff options
context:
space:
mode:
authorSergey Fedoseev <fedoseev.sergey@gmail.com>2018-09-28 18:57:12 +0500
committerTim Graham <timograham@gmail.com>2018-09-28 09:57:12 -0400
commit8ef8bc0f64c463684268a7c55f3d3da4de066c0d (patch)
tree9c3ab782c6382bdbc91363d0dd5513df83381903 /django/test/html.py
parent4fc8fb7ddaad495d45d53df58b2d13115857b3c7 (diff)
Refs #28909 -- Simplifed code using unpacking generalizations.
Diffstat (limited to 'django/test/html.py')
-rw-r--r--django/test/html.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/test/html.py b/django/test/html.py
index c01f73c1fb..3b55b52861 100644
--- a/django/test/html.py
+++ b/django/test/html.py
@@ -72,7 +72,7 @@ class Element:
return self.children == element.children
def __hash__(self):
- return hash((self.name,) + tuple(a for a in self.attributes))
+ return hash((self.name, *(a for a in self.attributes)))
def _count(self, element, count=True):
if not isinstance(element, str):