Skip to content

Commit df0ce40

Browse files
albert.zecherumvantellingen
authored andcommitted
Added return of value for accepted string type for xsd:base64Binary.
1 parent 50e9279 commit df0ce40

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/zeep/xsd/types/builtins.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,8 @@ class Base64Binary(BuiltinType):
372372

373373
@check_no_collection
374374
def xmlvalue(self, value):
375+
if isinstance(value, six.string_types):
376+
return value
375377
return base64.b64encode(value)
376378

377379
def pythonvalue(self, value):

0 commit comments

Comments
 (0)