]> khamidou — GitHub mirrors - vcrpy.git/commitdiff
Deleted unnecessary __hash__ method of Request
authorMax Shytikov <mshytikov@gmail.com>
Tue, 29 Apr 2014 21:25:14 +0000 (23:25 +0200)
committerMax Shytikov <mshytikov@gmail.com>
Wed, 30 Apr 2014 00:36:27 +0000 (02:36 +0200)
vcr/request.py

index a84057299c012490c18e79aac30a1a0483f55539..5415743371ed668e05fab7dc215c062ace03a6c1 100644 (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)