Merged hash() calls.

Thanks Simon Charette for the review.
This commit is contained in:
Mariusz Felisiak 2017-09-28 18:12:48 +02:00 committed by Tim Graham
parent fc6528b25a
commit 2b5a511bd9
2 changed files with 3 additions and 9 deletions

View file

@ -1416,7 +1416,7 @@ class Prefetch:
return isinstance(other, Prefetch) and self.prefetch_to == other.prefetch_to
def __hash__(self):
return hash(self.__class__) ^ hash(self.prefetch_to)
return hash((self.__class__, self.prefetch_to))
def normalize_prefetch_lookups(lookups, prefix=None):