Fix mypy joinpath errors (#9871)

* Fix mypy joinpath errors

* update changelog
This commit is contained in:
ohemorange
2024-01-05 16:35:37 -08:00
committed by GitHub
parent 9d8eb6ccfd
commit 926d0c7e0f
7 changed files with 17 additions and 16 deletions
@@ -257,6 +257,6 @@ def find_ssl_apache_conf(prefix: str) -> str:
"""
file_manager = ExitStack()
atexit.register(file_manager.close)
ref = importlib_resources.files("certbot_apache").joinpath(
"_internal", "tls_configs", "{0}-options-ssl-apache.conf".format(prefix))
ref = (importlib_resources.files("certbot_apache").joinpath("_internal")
.joinpath("tls_configs").joinpath("{0}-options-ssl-apache.conf".format(prefix)))
return str(file_manager.enter_context(importlib_resources.as_file(ref)))