chore(lint): Run pyupgrade

This commit is contained in:
Lev Vereshchagin
2021-12-10 11:51:47 +03:00
parent 3e4e66769b
commit c4772bc5b5
4 changed files with 13 additions and 13 deletions

View File

@@ -29,7 +29,7 @@ def check_host(ip, port, retry=10, delay=3, print_attempt=True):
ipup = False
for i in range(retry):
if print_attempt:
print("Attempt {i} to connect to {ip}:{port}".format(ip=ip, port=port, i=i+1))
print(f"Attempt {i+1} to connect to {ip}:{port}")
if is_open(ip, port):
ipup = True
break