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

PEP8 Fixes

This commit is contained in:
Kevin McCarthy
2013-12-19 19:38:35 -10:00
parent d4494bae50
commit 2cf779d776
2 changed files with 5 additions and 3 deletions

View File

@@ -77,7 +77,8 @@ class Cassette(ContextDecorator):
# The cassette doesn't contain the request asked for.
raise UnhandledHTTPRequestError(
"The cassette (%r) doesn't contain the request (%r) asked for"
% (self._path,request))
% (self._path, request)
)
def responses_of(self, request):
'''
@@ -94,7 +95,8 @@ class Cassette(ContextDecorator):
# The cassette doesn't contain the request asked for.
raise UnhandledHTTPRequestError(
"The cassette (%r) doesn't contain the request (%r) asked for"
% (self._path,request))
% (self._path, request)
)
def _as_dict(self):
return {"requests": self.requests, "responses": self.responses}

View File

@@ -176,7 +176,7 @@ class VCRConnectionMixin:
raise CannotOverwriteExistingCassetteException(
"Can't overwrite existing cassette (%r) in "
"your current record mode (%r)."
% (self.cassette._path, self.cassette.record_mode)
% (self.cassette._path, self.cassette.record_mode)
)
# Otherwise, we should send the request, then get the response