# HG changeset patch # User jruigrok # Date 1270976133 0 # Node ID 6b334dea4817422c95d4d3f7570a7c506f25b8ef # Parent bf33dd73e7439fc80f452e6f5081184c66fe8880 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/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/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/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)