changeset e22f72bfb356 in tryton:default
details: https://hg.tryton.org/tryton?cmd=changeset;node=e22f72bfb356
description:
Decode JSON selection data
json.loads accept bytes only since Python 3.6
issue7833
review48691002
diffstat:
tryton/gui/window/view_form/view/list.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diffs (11 lines):
diff -r d4918be853dd -r e22f72bfb356 tryton/gui/window/view_form/view/list.py
--- a/tryton/gui/window/view_form/view/list.py Wed Jan 02 18:56:34 2019 +0100
+++ b/tryton/gui/window/view_form/view/list.py Wed Jan 02 18:59:47 2019 +0100
@@ -781,6 +781,7 @@
selection_data = selection.get_data()
if not selection_data:
return
+ selection_data = selection_data.decode('utf-8')
# Don't received if the treeview was editing because it breaks the
# internal state of the cursor.