Simplify import + assignment

This commit is contained in:
Eugenio Lacuesta 2019-08-08 23:53:35 -03:00
parent b404941e0d
commit d92f1b1858
No known key found for this signature in database
GPG Key ID: DA3EF2D0913E9810
1 changed files with 1 additions and 2 deletions

View File

@ -29,8 +29,7 @@ openssl_methods = {
if twisted_version < (17, 0, 0):
from twisted.internet._sslverify import _maybeSetHostNameIndication
set_tlsext_host_name = _maybeSetHostNameIndication
from twisted.internet._sslverify import _maybeSetHostNameIndication as set_tlsext_host_name
else:
def set_tlsext_host_name(connection, hostNameBytes):
connection.set_tlsext_host_name(hostNameBytes)