changeset 22135da4f59b in trytond:4.4
details: https://hg.tryton.org/trytond?cmd=changeset;node=22135da4f59b
description:
        Use custom base64 unmarshaller

        Even on Python3, we should return data instead of Binary.

        issue8414
        review279541002
        (grafted from d2e2fcab5219b55b9e9cc1dd18e7fae49267456b)
diffstat:

 trytond/protocols/xmlrpc.py |  3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diffs (13 lines):

diff -r 67649c299466 -r 22135da4f59b trytond/protocols/xmlrpc.py
--- a/trytond/protocols/xmlrpc.py       Wed Jun 12 19:15:00 2019 +0200
+++ b/trytond/protocols/xmlrpc.py       Sun Jun 16 12:37:22 2019 +0200
@@ -131,8 +131,7 @@
     cast = bytearray if bytes == str else bytes
     self.append(cast(value.data))
     self._value = 0
-if bytes == str:
-    client.Unmarshaller.dispatch['base64'] = _end_base64
+client.Unmarshaller.dispatch['base64'] = _end_base64
 
 
 class XMLRequest(Request):

Reply via email to