]> khamidou — GitHub mirrors - vcrpy.git/commitdiff
pep8
authorKevin McCarthy <me@kevinmccarthy.org>
Thu, 24 Apr 2014 07:24:12 +0000 (21:24 -1000)
committerKevin McCarthy <me@kevinmccarthy.org>
Thu, 24 Apr 2014 07:24:12 +0000 (21:24 -1000)
vcr/stubs/__init__.py
vcr/stubs/compat.py
vcr/stubs/httplib2_stubs.py

index 07f866088773b5b9c21cbb56ef97811b39f79888..e8e6843b55cf1ce888f896e2a9d4a43fce8f03b9 100644 (file)
@@ -16,6 +16,7 @@ from vcr.request import Request
 from vcr.errors import CannotOverwriteExistingCassetteException
 from . import compat
 
+
 class VCRFakeSocket(object):
     """
     A socket that doesn't do anything!
@@ -35,7 +36,7 @@ class VCRFakeSocket(object):
         this descriptor and make sure it's not closed.
         Return file descriptor 0 since that's stdin.
         """
-        return 0 # wonder how bad this is....
+        return 0  # wonder how bad this is....
 
 
 def parse_headers_backwards_compat(header_dict):
index d40004479f80e63ff4c589e09a872ba05f6aec61..3b383e5869062501ae4e906ba25d70e3098cda20 100644 (file)
@@ -31,7 +31,7 @@ def get_headers(response):
     if six.PY3:
         header_list = response.msg._headers
         return [b': '.join((k.encode('utf-8'), v.encode('utf-8'))) + b'\r\n'
-                 for k, v in header_list]
+                for k, v in header_list]
     else:
         return response.msg.headers
 
index fafa37f3eb6ec907011ef2bdb1fcef91873fcf0d..04b508b43bf59aafc3527896a1ce1f8064ba3061 100644 (file)
@@ -47,7 +47,7 @@ class VCRHTTPSConnectionWithTimeout(VCRHTTPSConnection,
         for kw in unknown_keys:
             del safe_kwargs[kw]
         self.proxy_info = kwargs.pop('proxy_info', None)
-        if not 'ca_certs' in kwargs or kwargs['ca_certs'] is None:
+        if 'ca_certs' not in kwargs or kwargs['ca_certs'] is None:
             try:
                 import httplib2
                 self.ca_certs = httplib2.CA_CERTS