mirror of
https://github.com/kevin1024/vcrpy.git
synced 2025-12-10 17:45:35 +00:00
PEP8 Fixes
This commit is contained in:
@@ -77,7 +77,8 @@ class Cassette(ContextDecorator):
|
|||||||
# The cassette doesn't contain the request asked for.
|
# The cassette doesn't contain the request asked for.
|
||||||
raise UnhandledHTTPRequestError(
|
raise UnhandledHTTPRequestError(
|
||||||
"The cassette (%r) doesn't contain the request (%r) asked for"
|
"The cassette (%r) doesn't contain the request (%r) asked for"
|
||||||
% (self._path,request))
|
% (self._path, request)
|
||||||
|
)
|
||||||
|
|
||||||
def responses_of(self, request):
|
def responses_of(self, request):
|
||||||
'''
|
'''
|
||||||
@@ -94,7 +95,8 @@ class Cassette(ContextDecorator):
|
|||||||
# The cassette doesn't contain the request asked for.
|
# The cassette doesn't contain the request asked for.
|
||||||
raise UnhandledHTTPRequestError(
|
raise UnhandledHTTPRequestError(
|
||||||
"The cassette (%r) doesn't contain the request (%r) asked for"
|
"The cassette (%r) doesn't contain the request (%r) asked for"
|
||||||
% (self._path,request))
|
% (self._path, request)
|
||||||
|
)
|
||||||
|
|
||||||
def _as_dict(self):
|
def _as_dict(self):
|
||||||
return {"requests": self.requests, "responses": self.responses}
|
return {"requests": self.requests, "responses": self.responses}
|
||||||
|
|||||||
Reference in New Issue
Block a user