From 701b6e1ebd5f2b27f21ca99ef59e5f18e90776cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonel=20C=C3=A2mara?= Date: Mon, 4 Mar 2019 17:11:04 +0000 Subject: [PATCH] Fix b' in session.flash when storing a LazyT probably Fixes #2110 as putting T('foo') in the session was the only way I could reproduce it --- gluon/languages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gluon/languages.py b/gluon/languages.py index 78215c05..6262500b 100644 --- a/gluon/languages.py +++ b/gluon/languages.py @@ -451,7 +451,7 @@ class lazyT(object): def pickle_lazyT(c): - return str, (c.xml(),) + return str, (to_native(c.xml()),) copyreg.pickle(lazyT, pickle_lazyT)