mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-03-26 21:33:12 +00:00
batch 2 - update Python idiom to 3.7 using pyupgrade (#11342)
* batch 2 - update Python idiom to 3.7 using pyupgrade * Apply suggestions from code review
This commit is contained in:
@@ -46,7 +46,7 @@ if len(sys.argv) > 3:
|
||||
ssl_ctx = ssl.create_default_context(ssl.Purpose.CLIENT_AUTH)
|
||||
|
||||
if HAS_TLS and ssl_ctx is not None:
|
||||
print("Using %s and %s" % (certfile, keyfile))
|
||||
print(f"Using {certfile} and {keyfile}")
|
||||
ssl_ctx.load_cert_chain(certfile=certfile, keyfile=keyfile)
|
||||
|
||||
print("Start SMTP server on port", port1)
|
||||
|
||||
Reference in New Issue
Block a user