]> khamidou — GitHub mirrors - vcrpy.git/commitdiff
PEP8 Fixes
authorKevin McCarthy <me@kevinmccarthy.org>
Fri, 20 Dec 2013 05:38:35 +0000 (19:38 -1000)
committerKevin McCarthy <me@kevinmccarthy.org>
Fri, 20 Dec 2013 05:43:32 +0000 (19:43 -1000)
vcr/cassette.py
vcr/stubs/__init__.py

index b68209da62db4afadc7a1535c5c465c3b6a737f5..7b6f8a24e9f9a7cedea55844b250aec906d05ff0 100644 (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}
index 1404f85d0bd72154b952899fe705a36a82716452..170efdc60ea3858721bc523fa892f47b4bc8cae2 100644 (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