# HG changeset patch # User jruigrok # Date 1270976133 0 # Node ID 9c064ee71cd207005f8f639a4cc8adcc600a9536 # Parent 82ef628ddc079784659a8a0d58f040c68884c6fa Merged revisions 474 via svnmerge from http://svn.edgewall.org/repos/babel/trunk ........ r474 | jruigrok | 2009-08-19 14:15:13 +0200 (wo, 19 aug 2009) | 4 lines Add a __ne__ method for the Locale class. Submitted by: mitsuhiko ........ diff --git a/0.9.x/ChangeLog b/0.9.x/ChangeLog --- a/0.9.x/ChangeLog +++ b/0.9.x/ChangeLog @@ -15,6 +15,7 @@ behaviour of always wrapping comments (ticket #145). * Fixed negative offset handling of Catalog._set_mime_headers (ticket #165). * Add --project and --version options for commandline (ticket #173). + * Add a __ne__() method to the Local class. Version 0.9.5 diff --git a/0.9.x/babel/core.py b/0.9.x/babel/core.py --- a/0.9.x/babel/core.py +++ b/0.9.x/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)