Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Settings access for Python 3.12 #1408

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 4 additions & 3 deletions src/zeep/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)