mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
fix whitespaces
This commit is contained in:
parent
1e49846ae5
commit
776f315e41
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user