From 776f315e411bde12e72f3f2ad965d21c678dce63 Mon Sep 17 00:00:00 2001 From: benoitc Date: Fri, 27 Dec 2013 15:39:33 +0100 Subject: [PATCH] fix whitespaces --- gunicorn/config.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/gunicorn/config.py b/gunicorn/config.py index 871d1dc2..111d5b6d 100644 --- a/gunicorn/config.py +++ b/gunicorn/config.py @@ -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"