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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user