0
0
Fork 1
mirror of https://mau.dev/maunium/synapse.git synced 2024-11-16 06:51:46 +01:00

formatting changes for pep8

This commit is contained in:
Jeroen 2018-06-25 12:31:16 +02:00
parent 3d605853c8
commit 07b4f88de9
4 changed files with 8 additions and 5 deletions

View file

@ -47,7 +47,9 @@ class TlsConfig(Config):
self.tls_fingerprints = config["tls_fingerprints"]
self.tls_ignore_certificate_validation = config.get("tls_ignore_certificate_validation", False)
self.tls_ignore_certificate_validation = config.get(
"tls_ignore_certificate_validation", False
)
# Check that our own certificate is included in the list of fingerprints
# and include it if it is not.

View file

@ -14,8 +14,8 @@
from twisted.internet import ssl
from OpenSSL import SSL, crypto
from twisted.internet._sslverify import _defaultCurveName, ClientTLSOptions, OpenSSLCertificateOptions, \
optionsForClientTLS
from twisted.internet._sslverify import _defaultCurveName, ClientTLSOptions, \
OpenSSLCertificateOptions, optionsForClientTLS
import logging

View file

@ -44,7 +44,8 @@ def matrix_federation_endpoint(reactor, destination, tls_client_options_factory=
Args:
reactor: Twisted reactor.
destination (bytes): The name of the server to connect to.
tls_client_options_factory (synapse.crypto.context_factory.ClientTLSOptionsFactory):
tls_client_options_factory
(synapse.crypto.context_factory.ClientTLSOptionsFactory):
Factory which generates TLS options for client connections.
timeout (int): connection timeout in seconds
"""

View file

@ -69,7 +69,7 @@ class MatrixFederationEndpointFactory(object):
return matrix_federation_endpoint(
reactor, destination, timeout=10,
tls_client_options_factory = self.tls_client_options_factory
tls_client_options_factory=self.tls_client_options_factory
)