mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-20 17:52:50 +00:00
Make mypy happy.
This commit is contained in:
parent
638154b2ad
commit
ae8a7eff43
@ -552,12 +552,12 @@ def listen_tls(
|
||||
host=hostname,
|
||||
port=listening_port.getHost().port,
|
||||
path=(str(server._swissnum, "ascii"),),
|
||||
userinfo=[
|
||||
userinfo=(
|
||||
str(
|
||||
get_spki_hash(load_pem_x509_certificate(cert_path.read_bytes())),
|
||||
"ascii",
|
||||
)
|
||||
],
|
||||
),
|
||||
),
|
||||
scheme="pb",
|
||||
)
|
||||
return furl
|
||||
|
@ -137,7 +137,7 @@ class PinningHTTPSValidation(AsyncTestCase):
|
||||
)
|
||||
|
||||
@asynccontextmanager
|
||||
async def listen(self, private_key_path, cert_path) -> str:
|
||||
async def listen(self, private_key_path, cert_path):
|
||||
"""
|
||||
Context manager that runs a HTTPS server with the given private key
|
||||
and certificate.
|
||||
|
Loading…
x
Reference in New Issue
Block a user