Flake8 adjustments

This commit is contained in:
Eugenio Lacuesta 2020-02-03 14:50:54 -03:00
parent bb8f7dc609
commit 4851efdfb0
No known key found for this signature in database
GPG Key ID: DA3EF2D0913E9810
1 changed files with 3 additions and 3 deletions

View File

@ -257,9 +257,9 @@ class MockDNSServer():
def ssl_context_factory(keyfile='keys/localhost.key', certfile='keys/localhost.crt', cipher_string=None):
factory = ssl.DefaultOpenSSLContextFactory(
os.path.join(os.path.dirname(__file__), keyfile),
os.path.join(os.path.dirname(__file__), certfile),
)
os.path.join(os.path.dirname(__file__), keyfile),
os.path.join(os.path.dirname(__file__), certfile),
)
if cipher_string:
ctx = factory.getContext()
# disabling TLS1.2+ because it unconditionally enables some strong ciphers