diff options
| author | stepshal <nessento@openmailbox.org> | 2016-07-12 22:00:43 +0700 | 
|---|---|---|
| committer | stepshal <nessento@openmailbox.org> | 2016-07-13 06:00:42 +0700 | 
| commit | 6d11e88f938f09ef16db4c6064b6e74acba4db1d (patch) | |
| tree | 18b8d914a2c4fc9f9e00d75a5b30330bb0d1942a /setuptools/ssl_support.py | |
| parent | e3e21fd3d608d72ebe1ba2e4d2b3a59fbca76554 (diff) | |
| download | python-setuptools-git-6d11e88f938f09ef16db4c6064b6e74acba4db1d.tar.gz | |
Fix quantity of blank lines after code object.
Diffstat (limited to 'setuptools/ssl_support.py')
| -rw-r--r-- | setuptools/ssl_support.py | 4 | 
1 files changed, 4 insertions, 0 deletions
diff --git a/setuptools/ssl_support.py b/setuptools/ssl_support.py index 657197cf..ecede509 100644 --- a/setuptools/ssl_support.py +++ b/setuptools/ssl_support.py @@ -161,6 +161,7 @@ class VerifyingHTTPSHandler(HTTPSHandler):  class VerifyingHTTPSConn(HTTPSConnection):      """Simple verifying connection: no auth, subclasses, timeouts, etc.""" +      def __init__(self, host, ca_bundle, **kw):          HTTPSConnection.__init__(self, host, **kw)          self.ca_bundle = ca_bundle @@ -192,6 +193,7 @@ class VerifyingHTTPSConn(HTTPSConnection):              self.sock.close()              raise +  def opener_for(ca_bundle=None):      """Get a urlopen() replacement that uses ca_bundle for verification"""      return urllib.request.build_opener( @@ -201,6 +203,7 @@ def opener_for(ca_bundle=None):  _wincerts = None +  def get_win_certfile():      global _wincerts      if _wincerts is not None: @@ -212,6 +215,7 @@ def get_win_certfile():          return None      class MyCertFile(CertFile): +          def __init__(self, stores=(), certs=()):              CertFile.__init__(self)              for store in stores:  | 
