commit | 8ea6439d3b66c5acc246261d761d4375bcb7cfab | [log] [tgz] |
---|---|---|
author | Behdad Esfahbod <behdad@behdad.org> | Fri Dec 06 22:25:48 2013 -0500 |
committer | Behdad Esfahbod <behdad@behdad.org> | Fri Dec 06 22:25:48 2013 -0500 |
tree | 39aa4c7d6ff136105ca2024ae228cd4cf7d66f8f | |
parent | ec9436d7f604150f1566f6042391c7b3e800b115 [diff] [blame] |
Implement __ne__ when __eq__ is defined
diff --git a/Lib/fontTools/misc/py23.py b/Lib/fontTools/misc/py23.py index ff33980..0e5e45f 100644 --- a/Lib/fontTools/misc/py23.py +++ b/Lib/fontTools/misc/py23.py
@@ -57,6 +57,8 @@ def __new__(self, content): return str.__new__(self, self.transcode(content)) + def __ne__(self, other): + return not self.__eq__(other) def __eq__(self, other): return str.__eq__(self, self.transcode(other))