diff options
author | Andrew Morgan <andrew@amorgan.xyz> | 2019-04-02 13:12:21 +0100 |
---|---|---|
committer | Andrew Morgan <andrew@amorgan.xyz> | 2019-04-02 13:12:21 +0100 |
commit | 3adf15d3579bc4361844bab046f7c203fceb0ef0 (patch) | |
tree | 7321894fa1e94e519e9f1dbb9aec879784d1f8ba | |
parent | liiint (diff) | |
download | synapse-3adf15d3579bc4361844bab046f7c203fceb0ef0.tar.xz |
Correct imports
-rw-r--r-- | synapse/crypto/context_factory.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/synapse/crypto/context_factory.py b/synapse/crypto/context_factory.py index bfd7910f30..3faca79200 100644 --- a/synapse/crypto/context_factory.py +++ b/synapse/crypto/context_factory.py @@ -21,12 +21,8 @@ from OpenSSL import SSL, crypto from twisted.internet._sslverify import _defaultCurveName from twisted.internet.abstract import isIPAddress, isIPv6Address from twisted.internet.interfaces import IOpenSSLClientConnectionCreator -from twisted.internet.ssl import ( - CertificateOptions, - ContextFactory, - OpenSSLCertificateAuthorities, - platformTrust, -) +from twisted.internet.ssl import CertificateOptions, ContextFactory, platformTrust +from twisted.internet._sslverify import OpenSSLCertificateAuthorities from twisted.python.failure import Failure logger = logging.getLogger(__name__) |