From b5698855447fdf34e7a3ef0897886b5cf8c262e7 Mon Sep 17 00:00:00 2001 From: Michael Whalen Date: Fri, 23 Feb 2024 12:44:24 -0500 Subject: [PATCH 1/2] Fix settings access for Python 3.12 --- src/zeep/settings.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/zeep/settings.py b/src/zeep/settings.py index 2a1c329d..3ee6b294 100644 --- a/src/zeep/settings.py +++ b/src/zeep/settings.py @@ -76,6 +76,7 @@ def __call__(self, **options): setattr(self._tls, key, value) def __getattribute__(self, key): - if key != "_tls" and hasattr(self._tls, key): - return getattr(self._tls, key) - return super().__getattribute__(key) + _tls = object.__getattribute__(self, "_tls") + if key != "_tls" and hasattr(_tls, key): + return getattr(_tls, key) + return object.__getattribute__(self, key) From c33b145f380f73304a2cc736e7b10db98d672fdd Mon Sep 17 00:00:00 2001 From: Michael Whalen Date: Fri, 23 Feb 2024 12:48:01 -0500 Subject: [PATCH 2/2] Update readme to note 3.12 compatibility --- README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 875fb8e5..1564c2bc 100644 --- a/README.rst +++ b/README.rst @@ -5,7 +5,7 @@ Zeep: Python SOAP client A Python SOAP client Highlights: - * Compatible with Python 3.7, 3.8, 3.9, 3.10, 3.11 and PyPy3 + * Compatible with Python 3.7, 3.8, 3.9, 3.10, 3.11, 3.12 and PyPy3 * Build on top of lxml, requests and httpx * Support for Soap 1.1, Soap 1.2 and HTTP bindings * Support for WS-Addressing headers