Skip to content

Commit 90a4c09

Browse files
committed
fix: more flexible API, that works
1 parent e18b5e7 commit 90a4c09

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/zeep/wsdl/bindings/soap.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from collections.abc import Sequence
12
import logging
23
import typing
34

@@ -93,7 +94,7 @@ def _create(self, operation, args, kwargs, client=None, options=None):
9394

9495
# Apply WSSE
9596
if client.wsse:
96-
if isinstance(client.wsse, list):
97+
if isinstance(client.wsse, Sequence):
9798
for wsse in client.wsse:
9899
envelope, http_headers = wsse.apply(envelope, http_headers)
99100
else:
@@ -216,7 +217,7 @@ def process_reply(self, client, operation, response):
216217
message_pack = None
217218

218219
if client.wsse:
219-
if isinstance(client.wsse, list):
220+
if isinstance(client.wsse, Sequence):
220221
for wsse in client.wsse:
221222
wsse.verify(doc)
222223
else:

0 commit comments

Comments
 (0)