diff options
| author | Tin Lam <tl3438@att.com> | 2016-03-25 03:07:45 -0500 |
|---|---|---|
| committer | Tin Lam <tl3438@att.com> | 2016-04-18 16:23:59 +0000 |
| commit | cd5925bc60a5298ecc7182bf058a1b3a5bec30cf (patch) | |
| tree | 9117aff234220044583408b490a978ced977b899 /glanceclient/common/https.py | |
| parent | 04e1ea73a5159f07eac5bf6ef40f33e7f724f901 (diff) | |
| download | python-glanceclient-cd5925bc60a5298ecc7182bf058a1b3a5bec30cf.tar.gz | |
Enable hacking checks
Enabled following hacking checks from tox.ini:
- H233 Python 3.x incompatible use of print operator
- H303 no wildcard import
- H404 multi line docstring should start with a summary
Change-Id: I2553bcd3e80c00acc08d135a1d2dadfb6cda49fe
Partial-Bugs: #1475054
Diffstat (limited to 'glanceclient/common/https.py')
| -rw-r--r-- | glanceclient/common/https.py | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/glanceclient/common/https.py b/glanceclient/common/https.py index d2991cd..36015e5 100644 --- a/glanceclient/common/https.py +++ b/glanceclient/common/https.py @@ -52,7 +52,7 @@ from glanceclient import exc def verify_callback(host=None): - """ + """Provide wrapper for do_verify_callback. We use a partial around the 'real' verify_callback function so that we can stash the host value without holding a @@ -87,7 +87,7 @@ def do_verify_callback(connection, x509, errnum, def host_matches_cert(host, x509): - """ + """Verify the certificate identifies the host. Verify that the x509 certificate we have received from 'host' correctly identifies the server we are @@ -187,7 +187,7 @@ class HTTPSAdapter(adapters.HTTPAdapter): class HTTPSConnectionPool(connectionpool.HTTPSConnectionPool): - """ + """A replacement for the default HTTPSConnectionPool. HTTPSConnectionPool will be instantiated when a new connection is requested to the HTTPSAdapter. This @@ -232,10 +232,8 @@ class OpenSSLConnectionDelegator(object): class VerifiedHTTPSConnection(HTTPSConnection): - """ + """Extended OpenSSL HTTPSConnection for enhanced SSL support. - Extended HTTPSConnection which uses the OpenSSL library - for enhanced SSL support. Note: Much of this functionality can eventually be replaced with native Python 3.3 code. """ @@ -325,10 +323,9 @@ class VerifiedHTTPSConnection(HTTPSConnection): self.context.set_default_verify_paths() def connect(self): - """ + """Connect to an SSL port using the OpenSSL library. - Connect to an SSL port using the OpenSSL library - and apply per-connection parameters. + This method also applies per-connection parameters to the connection. """ result = socket.getaddrinfo(self.host, self.port, 0, socket.SOCK_STREAM) |
