1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-08 16:53:23 +00:00

Deleted unnecessary __hash__ method of Request

This commit is contained in:
Max Shytikov
2014-04-29 23:25:14 +02:00
parent 34ce0a35ec
commit 7e677f516d

View File

@@ -46,20 +46,6 @@ class Request(object):
def protocol(self):
return self.scheme
def __key(self):
return (
self.method,
self.uri,
self.body,
self.headers
)
def __hash__(self):
return hash(self.__key())
def __eq__(self, other):
return hash(self) == hash(other)
def __str__(self):
return "<Request ({0}) {1}>".format(self.method, self.uri)