fix whitespaces

This commit is contained in:
benoitc 2013-12-27 15:39:33 +01:00
parent 1e49846ae5
commit 776f315e41

View File

@ -143,17 +143,17 @@ class Config(object):
@property
def ssl_options(self):
opts = {}
for attr in('certfile', 'keyfile', 'cert_reqs', 'ssl_version', \
'ca_certs', 'suppress_ragged_eofs', 'do_handshake_on_connect',
'ciphers'):
# suppress_ragged_eofs/do_handshake_on_connect are booleans that can
# be False hence we use hasattr instead of getattr(self, attr, None).
if hasattr(self, attr):
value = getattr(self, attr)
opts[attr] = value
return opts
@property
@ -1474,7 +1474,7 @@ class CertFile(Setting):
desc = """\
SSL certificate file
"""
class SSLVersion(Setting):
name = "ssl_version"
section = "Ssl"
@ -1484,7 +1484,7 @@ class SSLVersion(Setting):
desc = """\
SSL version to use (see stdlib ssl module's)
"""
class CertReqs(Setting):
name = "cert_reqs"
section = "Ssl"
@ -1494,7 +1494,7 @@ class CertReqs(Setting):
desc = """\
Whether client certificate is required (see stdlib ssl module's)
"""
class CACerts(Setting):
name = "ca_certs"
section = "Ssl"
@ -1505,7 +1505,7 @@ class CACerts(Setting):
desc = """\
CA certificates file
"""
class SuppressRaggedEOFs(Setting):
name = "suppress_ragged_eofs"
section = "Ssl"
@ -1527,7 +1527,7 @@ class DoHandshakeOnConnect(Setting):
desc = """\
Whether to perform SSL handshake on socket connect (see stdlib ssl module's)
"""
class Ciphers(Setting):
name = "ciphers"
section = "Ssl"