From 87755a31567cc53d306ffb9a10d416a66db64432 Mon Sep 17 00:00:00 2001 From: Moul <moul@moul.re> Date: Tue, 20 Jul 2021 22:33:58 +0200 Subject: [PATCH] [fix] #170: Missing f-string for ESUserEndpoint regex --- duniterpy/api/endpoint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/duniterpy/api/endpoint.py b/duniterpy/api/endpoint.py index f48020c2..c6f0e077 100644 --- a/duniterpy/api/endpoint.py +++ b/duniterpy/api/endpoint.py @@ -456,7 +456,7 @@ ESUserEndpointType = TypeVar("ESUserEndpointType", bound="ESUserEndpoint") class ESUserEndpoint(Endpoint): API = "ES_USER_API" re_inline = re.compile( - "^{API} (?P<host>(?:{const.HOST_REGEX})|(?:{const.IPV4_REGEX})) (?P<port>{const.PORT_REGEX})$" + f"^{API} (?P<host>(?:{const.HOST_REGEX})|(?:{const.IPV4_REGEX})) (?P<port>{const.PORT_REGEX})$" ) def __init__(self, host: str, port: int) -> None: -- GitLab