Fixed bugs in LazyI18nString.__eq__

This commit is contained in:
Raphael Michel
2016-03-24 17:09:11 +01:00
parent 9fa063244b
commit abf5af4253

View File

@@ -79,7 +79,11 @@ class LazyI18nString:
return self.__str__()
def __eq__(self, other):
return self.data == other.data
if other is None:
return False
if hasattr(other, 'data'):
return self.data == other.data
return self.data == other
class LazyGettextProxy:
def __init__(self, lazygettext):