From 8a23cf419deec08ac34280a6660ed16426abe400 Mon Sep 17 00:00:00 2001 From: Dillonko Date: Sun, 2 Jul 2023 16:21:13 -0400 Subject: [PATCH] Update main.py with f-strings --- google-python-simple-http-endpoint/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google-python-simple-http-endpoint/main.py b/google-python-simple-http-endpoint/main.py index 62b086c1e..0040c003d 100644 --- a/google-python-simple-http-endpoint/main.py +++ b/google-python-simple-http-endpoint/main.py @@ -19,7 +19,7 @@ def endpoint(request): """ current_time = datetime.datetime.now().time() body = { - "message": "Received a {} request at {}".format(request.method, str(current_time)) + "message": f"Received a {request.method} request at {current_time}" } response = {