Mercurial > p > roundup > code
diff roundup/cgi/templating.py @ 5461:ad8031290639
Python 3 compatibility for missing / mock value
| author | Christof Meerwald <cmeerw@cmeerw.org> |
|---|---|
| date | Tue, 24 Jul 2018 21:39:37 +0100 |
| parents | a35d4cc8cd1a |
| children | b0359a7c5b6d |
line wrap: on
line diff
--- a/roundup/cgi/templating.py Tue Jul 24 21:25:38 2018 +0100 +++ b/roundup/cgi/templating.py Tue Jul 24 21:39:37 2018 +0100 @@ -3244,6 +3244,8 @@ # Python 2 compatibility: __nonzero__ = __bool__ def __contains__(self, key): return False + def __eq__(self, rhs): return False + def __ne__(self, rhs): return False def __str__(self): return '[%s]'%self.__description def __repr__(self): return '<MissingValue 0x%x "%s">'%(id(self), self.__description)
