changeset 925bae21d0cf in trytond:4.6
details: https://hg.tryton.org/trytond?cmd=changeset;node=925bae21d0cf
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 ec288b22957b -r 925bae21d0cf 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):