From f307fe7d56b8948058032a9974ebc937e45c375c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonel=20C=C3=A2mara?= Date: Wed, 10 Jul 2019 12:25:40 +0100 Subject: [PATCH] __lt__ and __gt__ for lazyT Fixes #2228 --- gluon/languages.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gluon/languages.py b/gluon/languages.py index 6262500b..9ed60f9c 100644 --- a/gluon/languages.py +++ b/gluon/languages.py @@ -392,6 +392,12 @@ class lazyT(object): def __eq__(self, other): return str(self) == str(other) + def __lt__(self, other): + return str(self) < str(other) + + def __gt__(self, other): + return str(self) > str(other) + def __ne__(self, other): return str(self) != str(other)