summaryrefslogtreecommitdiff
path: root/slixmpp/xmlstream
diff options
context:
space:
mode:
authorMaxime “pep” Buquet <pep@bouah.net>2022-01-03 23:36:25 +0100
committerMaxime “pep” Buquet <pep@bouah.net>2022-01-03 23:36:25 +0100
commit9f38c8944d5be891077145e4585734921f31b444 (patch)
tree0d8cabe4928fa4b0e2c861c6ea2ade4caff0440d /slixmpp/xmlstream
parente56930e0a12b8b5e5117474bd919550e5c6aa930 (diff)
downloadslixmpp-9f38c8944d5be891077145e4585734921f31b444.tar.gz
slixmpp-9f38c8944d5be891077145e4585734921f31b444.tar.bz2
slixmpp-9f38c8944d5be891077145e4585734921f31b444.tar.xz
slixmpp-9f38c8944d5be891077145e4585734921f31b444.zip
Don't break ca-bundle API just yet
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
Diffstat (limited to 'slixmpp/xmlstream')
-rw-r--r--slixmpp/xmlstream/xmlstream.py3
1 files changed, 3 insertions, 0 deletions
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