mirror of
https://github.com/Kozea/Radicale.git
synced 2025-04-04 05:37:37 +03:00
fix for actions: ./radicale/tests/test_server.py:109:80: E501 line too long (106 > 79 characters)
This commit is contained in:
parent
9f1e243f00
commit
8e3f3b5bf2
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue