mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +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:
@@ -20,7 +20,7 @@ except ImportError:
|
||||
|
||||
# Argument parsing
|
||||
if len(sys.argv) != 4:
|
||||
print("Syntax: {0} <bind> <port> <path>".format(sys.argv[0]))
|
||||
print(f"Syntax: {sys.argv[0]} <bind> <port> <path>")
|
||||
sys.exit(-1)
|
||||
|
||||
HOST, PORT, PATH = sys.argv[1:4]
|
||||
|
||||
Reference in New Issue
Block a user