summaryrefslogtreecommitdiff
path: root/src/waitress/adjustments.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/waitress/adjustments.py')
-rw-r--r--src/waitress/adjustments.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/waitress/adjustments.py b/src/waitress/adjustments.py
index 6e9b702..e08d75d 100644
--- a/src/waitress/adjustments.py
+++ b/src/waitress/adjustments.py
@@ -143,7 +143,7 @@ class Adjustments:
# TCP port to listen on
port = _int_marker(8080)
- listen = ["{}:{}".format(host, port)]
+ listen = [f"{host}:{port}"]
# number of threads available for tasks
threads = 4
@@ -322,7 +322,7 @@ class Adjustments:
if not isinstance(self.host, _str_marker) or not isinstance(
self.port, _int_marker
):
- self.listen = ["{}:{}".format(self.host, self.port)]
+ self.listen = [f"{self.host}:{self.port}"]
enabled_families = socket.AF_UNSPEC