diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2013-12-07 03:40:44 -0500 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2013-12-07 03:40:44 -0500 |
commit | 273a90074ac209d67b5e2cb8ea510cd6c2b10272 (patch) | |
tree | 62e555cff6d173dbf166351064825264d70c8a44 /Lib/fontTools/ttLib/tables/_n_a_m_e.py | |
parent | 56da965344d25223d41e202aa7fd463dc6228752 (diff) | |
download | fonttools-273a90074ac209d67b5e2cb8ea510cd6c2b10272.tar.gz |
Return NotImplemented
Diffstat (limited to 'Lib/fontTools/ttLib/tables/_n_a_m_e.py')
-rw-r--r-- | Lib/fontTools/ttLib/tables/_n_a_m_e.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/fontTools/ttLib/tables/_n_a_m_e.py b/Lib/fontTools/ttLib/tables/_n_a_m_e.py index 36631266..78bc5e69 100644 --- a/Lib/fontTools/ttLib/tables/_n_a_m_e.py +++ b/Lib/fontTools/ttLib/tables/_n_a_m_e.py @@ -127,7 +127,7 @@ class NameRecord(object): def __lt__(self, other): if type(self) != type(other): - raise TypeError("unordered types %s() < %s()", type(self), type(other)) + return NotImplemented # implemented so that list.sort() sorts according to the spec. selfTuple = ( |