# HG changeset patch # User jruigrok # Date 1250684113 0 # Node ID 5f1ff3442ef7cacd30cb5118dfcec83ac196b552 # Parent 34c1a971051efabbf91d31d584b54e0c2863a902 Add a __ne__ method for the Locale class. Submitted by: mitsuhiko diff --git a/babel/core.py b/babel/core.py --- 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 '' % str(self)