mirror of
https://github.com/frappe/gunicorn.git
synced 2026-07-07 13:11:30 +08:00
fix whitespaces
This commit is contained in:
parent
1e49846ae5
commit
776f315e41
@ -143,17 +143,17 @@ class Config(object):
|
|||||||
@property
|
@property
|
||||||
def ssl_options(self):
|
def ssl_options(self):
|
||||||
opts = {}
|
opts = {}
|
||||||
|
|
||||||
for attr in('certfile', 'keyfile', 'cert_reqs', 'ssl_version', \
|
for attr in('certfile', 'keyfile', 'cert_reqs', 'ssl_version', \
|
||||||
'ca_certs', 'suppress_ragged_eofs', 'do_handshake_on_connect',
|
'ca_certs', 'suppress_ragged_eofs', 'do_handshake_on_connect',
|
||||||
'ciphers'):
|
'ciphers'):
|
||||||
|
|
||||||
# suppress_ragged_eofs/do_handshake_on_connect are booleans that can
|
# suppress_ragged_eofs/do_handshake_on_connect are booleans that can
|
||||||
# be False hence we use hasattr instead of getattr(self, attr, None).
|
# be False hence we use hasattr instead of getattr(self, attr, None).
|
||||||
if hasattr(self, attr):
|
if hasattr(self, attr):
|
||||||
value = getattr(self, attr)
|
value = getattr(self, attr)
|
||||||
opts[attr] = value
|
opts[attr] = value
|
||||||
|
|
||||||
return opts
|
return opts
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@ -1474,7 +1474,7 @@ class CertFile(Setting):
|
|||||||
desc = """\
|
desc = """\
|
||||||
SSL certificate file
|
SSL certificate file
|
||||||
"""
|
"""
|
||||||
|
|
||||||
class SSLVersion(Setting):
|
class SSLVersion(Setting):
|
||||||
name = "ssl_version"
|
name = "ssl_version"
|
||||||
section = "Ssl"
|
section = "Ssl"
|
||||||
@ -1484,7 +1484,7 @@ class SSLVersion(Setting):
|
|||||||
desc = """\
|
desc = """\
|
||||||
SSL version to use (see stdlib ssl module's)
|
SSL version to use (see stdlib ssl module's)
|
||||||
"""
|
"""
|
||||||
|
|
||||||
class CertReqs(Setting):
|
class CertReqs(Setting):
|
||||||
name = "cert_reqs"
|
name = "cert_reqs"
|
||||||
section = "Ssl"
|
section = "Ssl"
|
||||||
@ -1494,7 +1494,7 @@ class CertReqs(Setting):
|
|||||||
desc = """\
|
desc = """\
|
||||||
Whether client certificate is required (see stdlib ssl module's)
|
Whether client certificate is required (see stdlib ssl module's)
|
||||||
"""
|
"""
|
||||||
|
|
||||||
class CACerts(Setting):
|
class CACerts(Setting):
|
||||||
name = "ca_certs"
|
name = "ca_certs"
|
||||||
section = "Ssl"
|
section = "Ssl"
|
||||||
@ -1505,7 +1505,7 @@ class CACerts(Setting):
|
|||||||
desc = """\
|
desc = """\
|
||||||
CA certificates file
|
CA certificates file
|
||||||
"""
|
"""
|
||||||
|
|
||||||
class SuppressRaggedEOFs(Setting):
|
class SuppressRaggedEOFs(Setting):
|
||||||
name = "suppress_ragged_eofs"
|
name = "suppress_ragged_eofs"
|
||||||
section = "Ssl"
|
section = "Ssl"
|
||||||
@ -1527,7 +1527,7 @@ class DoHandshakeOnConnect(Setting):
|
|||||||
desc = """\
|
desc = """\
|
||||||
Whether to perform SSL handshake on socket connect (see stdlib ssl module's)
|
Whether to perform SSL handshake on socket connect (see stdlib ssl module's)
|
||||||
"""
|
"""
|
||||||
|
|
||||||
class Ciphers(Setting):
|
class Ciphers(Setting):
|
||||||
name = "ciphers"
|
name = "ciphers"
|
||||||
section = "Ssl"
|
section = "Ssl"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user