changeset 432:b476d2995944

Add a __ne__ method for the Locale class. Submitted by: mitsuhiko
author jruigrok
date Wed, 19 Aug 2009 12:15:13 +0000
parents f9eff13c0585
children 2ce20477c392
files babel/core.py
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/babel/core.py
+++ b/babel/core.py
@@ -216,6 +216,9 @@
     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)
 
Copyright (C) 2012-2017 Edgewall Software