]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
Add a __ne__ method for the Locale class.
authorJeroen Ruigrok van der Werven <asmodai@in-nomine.org>
Wed, 19 Aug 2009 12:15:13 +0000 (12:15 +0000)
committerJeroen Ruigrok van der Werven <asmodai@in-nomine.org>
Wed, 19 Aug 2009 12:15:13 +0000 (12:15 +0000)
Submitted by: mitsuhiko

babel/core.py

index d1d2359b5fb49d0942eba6ee031b91e9ebeb4273..a3ce40d4c59425611159c8bb9aefd7a4659fbc85 100644 (file)
@@ -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 '<Locale "%s">' % str(self)