mirror of
https://github.com/kevin1024/vcrpy.git
synced 2025-12-09 17:15:35 +00:00
formatting fixes
This commit is contained in:
@@ -78,10 +78,13 @@ class Cassette(object):
|
||||
def responses_of(self, request):
|
||||
'''
|
||||
Find the responses corresponding to a request.
|
||||
This function isn't actually used by VCR internally, but is
|
||||
provided as an external API.
|
||||
This function isn't actually used by VCR internally, but is
|
||||
provided as an external API.
|
||||
'''
|
||||
responses = [resp for req, resp in self.data if requests_match(req, request, self._match_on)]
|
||||
responses = \
|
||||
[resp for req, resp in self.data if
|
||||
requests_match(req, request, self._match_on)]
|
||||
|
||||
if responses:
|
||||
return responses
|
||||
# I decided that a KeyError is the best exception to raise
|
||||
|
||||
Reference in New Issue
Block a user