Skip to content

Commit 97be3bc

Browse files
whalesaladmvantellingen
authored andcommitted
Fix settings access for Python 3.12
1 parent 377d931 commit 97be3bc

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/zeep/settings.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ def __call__(self, **options):
7676
setattr(self._tls, key, value)
7777

7878
def __getattribute__(self, key):
79-
if key != "_tls" and hasattr(self._tls, key):
80-
return getattr(self._tls, key)
81-
return super().__getattribute__(key)
79+
_tls = object.__getattribute__(self, "_tls")
80+
if key != "_tls" and hasattr(_tls, key):
81+
return getattr(_tls, key)
82+
return object.__getattribute__(self, key)

0 commit comments

Comments
 (0)