From ea930a33ea0141c110d755b934b9a253fbb249b8 Mon Sep 17 00:00:00 2001 From: ttanay Date: Tue, 12 Mar 2019 02:26:30 +0530 Subject: [PATCH] Make __hash__ None for class Message --- apitools/base/protorpclite/messages.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/apitools/base/protorpclite/messages.py b/apitools/base/protorpclite/messages.py index 38e90ec8..6a1fef2f 100644 --- a/apitools/base/protorpclite/messages.py +++ b/apitools/base/protorpclite/messages.py @@ -758,6 +758,8 @@ class Order(Message): """ + __hash__ = None + def __init__(self, **kwargs): """Initialize internal messages state. @@ -1058,10 +1060,6 @@ def __ne__(self, other): """ return not self.__eq__(other) - def __hash__(self): - """Hash by __tags""" - return hash(self.__tags) - class FieldList(list): """List implementation that validates field values.