# HG changeset patch # User jruigrok # Date 1250684113 0 # Node ID b476d2995944a09b20682f72415a12cded2a7026 # Parent f9eff13c0585accc29fd6c6a08bd352301633f2f 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)