Skip to content

Commit

Permalink
hermetic_infra
Browse files Browse the repository at this point in the history
Reviewed By: jasonwhite

Differential Revision: D64105413

fbshipit-source-id: 0d3a27a9a3d9deeaa545e42b9e2d96ed307d5c18
  • Loading branch information
generatedunixname89002005287564 authored and facebook-github-bot committed Oct 10, 2024
1 parent 53eeeaf commit 1d884d4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions detcore/tests/lit/generate-test.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def yes_no(message):
Prompts the user for a boolean.
"""
while True:
s = input("{}? (Y/n): ".format(message)).lower()
s = input(f"{message}? (Y/n): ").lower()
if not s or s == "y":
return True
if s == "n":
Expand All @@ -121,7 +121,7 @@ def gen_test(name, lang):
try:
name.mkdir(parents=True, exist_ok=False)
except FileExistsError:
print("The test '{}' already exists.".format(name))
print(f"The test '{name}' already exists.")
return

if lang == "rust":
Expand Down
2 changes: 1 addition & 1 deletion tests/util/simplest_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def do_GET(self):

with socketserver.TCPServer(("", 0), Hello) as server:
address, port = server.server_address
print("{}:{}".format(address, port), flush=True)
print(f"{address}:{port}", flush=True)
if requests > 0:
for _i in range(0, requests):
server.handle_request()
Expand Down
2 changes: 1 addition & 1 deletion tests/util/ssl_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
sys.stderr.write("[server] Answering only " + str(requests) + " requests.\n")


print("{}:{}".format(httpd.server_name, httpd.server_port), flush=True)
print(f"{httpd.server_name}:{httpd.server_port}", flush=True)
if requests > 0:
for _i in range(0, requests):
httpd.handle_request()
Expand Down

0 comments on commit 1d884d4

Please sign in to comment.