fix for actions: ./radicale/tests/test_server.py:109:80: E501 line too long (106 > 79 characters)

This commit is contained in:
Peter Bieringer 2024-03-01 21:35:54 +01:00
parent 9f1e243f00
commit 8e3f3b5bf2

View file

@ -106,7 +106,10 @@ class TestBaseServerRequests(BaseTest):
data_bytes = None
if data:
data_bytes = data.encode(encoding)
req_host = ("[%s]" % self.sockname[0]) if self.sockfamily == socket.AF_INET6 else self.sockname[0]
if self.sockfamily == socket.AF_INET6:
req_host = ("[%s]" % self.sockname[0])
else:
req_host = self.sockname[0]
req = request.Request(
"%s://%s:%d%s" % (scheme, req_host, self.sockname[1], path),
data=data_bytes, headers=headers, method=method)