From 9f38c8944d5be891077145e4585734921f31b444 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Mon, 3 Jan 2022 23:36:25 +0100 Subject: Don't break ca-bundle API just yet MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- slixmpp/xmlstream/xmlstream.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/slixmpp/xmlstream/xmlstream.py b/slixmpp/xmlstream/xmlstream.py index fd0269da..82611bfd 100644 --- a/slixmpp/xmlstream/xmlstream.py +++ b/slixmpp/xmlstream/xmlstream.py @@ -771,6 +771,9 @@ class XMLStream(asyncio.BaseProtocol): self.certfile, self.keyfile) if self.ca_certs is not None: ca_cert: Optional[Path] = None + # XXX: Compat before d733c54518. + if isinstance(self.ca_certs, str): + self.ca_certs = Path(self.ca_certs) if isinstance(self.ca_certs, Path): if self.ca_certs.is_file(): ca_cert = self.ca_certs -- cgit v1.2.3