changeset 18e04069887d in tryton:5.8
details: https://hg.tryton.org/tryton?cmd=changeset&node=18e04069887d
description:
Freeze the content of tuple
The content of a tuple could be unhashable so it must also be frozen.
issue10603
review367321002
(grafted from ed3ce1fab2ab275e27f3e31e68156f2259eb9c84)
diffstat:
tryton/common/selection.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r ca430d002080 -r 18e04069887d tryton/common/selection.py
--- a/tryton/common/selection.py Wed Jul 21 08:15:09 2021 +0200
+++ b/tryton/common/selection.py Fri Aug 06 09:30:06 2021 +0200
@@ -134,7 +134,7 @@
if isinstance(value, dict):
return tuple(sorted((k, freeze_value(v))
for k, v in value.items()))
- elif isinstance(value, (list, set)):
+ elif isinstance(value, (list, set, tuple)):
return tuple(freeze_value(v) for v in value)
else:
return value