1
0
mirror of https://github.com/kevin1024/vcrpy.git synced 2025-12-09 17:15:35 +00:00

formatting fixes

This commit is contained in:
Kevin McCarthy
2013-12-01 14:38:46 -10:00
parent 188b57a2fa
commit 49929e3064
3 changed files with 15 additions and 7 deletions

View File

@@ -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