From 90662d148e8a756b9f7c69c8b7a6260ce54fc867 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Tue, 28 Dec 2021 18:19:38 +0100 Subject: [PATCH] Make Xmlstream.ca_certs an Optional[Path] instead of Optional[str] 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, 2 insertions(+), 1 deletion(-) diff --git a/slixmpp/xmlstream/xmlstream.py b/slixmpp/xmlstream/xmlstream.py index 256eb2dc..7c4283f2 100644 --- a/slixmpp/xmlstream/xmlstream.py +++ b/slixmpp/xmlstream/xmlstream.py @@ -33,6 +33,7 @@ import socket as Socket import ssl import weakref import uuid +from pathlib import Path from contextlib import contextmanager import xml.etree.ElementTree as ET @@ -161,7 +162,7 @@ class XMLStream(asyncio.BaseProtocol): #: #: On Mac OS X, certificates in the system keyring will #: be consulted, even if they are not in the provided file. - ca_certs: Optional[str] + ca_certs: Optional[Path] #: Path to a file containing a client certificate to use for #: authenticating via SASL EXTERNAL. If set, there must also