From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Thu, 13 Nov 2025 00:09:25 +0000 (-0500) Subject: Drop useless lambda X-Git-Tag: rec-5.4.0-alpha1~96^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F16483%2Fhead;p=thirdparty%2Fpdns.git Drop useless lambda Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- diff --git a/modules/remotebackend/regression-tests/dnsbackend.py b/modules/remotebackend/regression-tests/dnsbackend.py index 0bcaa39d4d..18ff566754 100755 --- a/modules/remotebackend/regression-tests/dnsbackend.py +++ b/modules/remotebackend/regression-tests/dnsbackend.py @@ -13,7 +13,7 @@ class DNSBackendHandler(http.server.BaseHTTPRequestHandler): def url_to_args(self): url = urlparse(self.path) - parts = list(map(lambda part: unquote(part), url.path.split("/"))) + parts = list(map(unquote, url.path.split("/"))) parts.pop(0) self.method = None diff --git a/modules/remotebackend/unittest_http.py b/modules/remotebackend/unittest_http.py index 7115aff71a..aa2ba33836 100755 --- a/modules/remotebackend/unittest_http.py +++ b/modules/remotebackend/unittest_http.py @@ -24,7 +24,7 @@ class DNSBackendHandler(http.server.BaseHTTPRequestHandler): def url_to_args(self): url = urlparse(self.path) - parts = list(map(lambda part: unquote(part), url.path.split("/"))) + parts = list(map(unquote, url.path.split("/"))) parts.pop(0) self.method = None