From: Jeroen Ruigrok van der Werven Date: Wed, 19 Aug 2009 12:15:13 +0000 (+0000) Subject: Add a __ne__ method for the Locale class. X-Git-Tag: 1.0~258 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b38f1991cf3da90fa97faf388b2dfe26287252f8;p=thirdparty%2Fbabel.git Add a __ne__ method for the Locale class. Submitted by: mitsuhiko --- diff --git a/babel/core.py b/babel/core.py index d1d2359b..a3ce40d4 100644 --- a/babel/core.py +++ b/babel/core.py @@ -216,6 +216,9 @@ class Locale(object): def __eq__(self, other): return str(self) == str(other) + def __ne__(self, other): + return not self.__eq__(other) + def __repr__(self): return '' % str(self)