diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2013-11-27 04:15:34 -0500 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2013-11-27 04:15:34 -0500 |
commit | ac1b4359467ca3deab03186a15eae1d55eb35567 (patch) | |
tree | f78544837f4a9576c082c3ed16fdecc7a831dcdd /Lib/fontTools/ttLib/tables/_n_a_m_e.py | |
parent | c2e2e835ec4af747397e3aa1d6c3bb1c8bf021ea (diff) | |
download | fonttools-ac1b4359467ca3deab03186a15eae1d55eb35567.tar.gz |
2to3 --fix=idioms
Diffstat (limited to 'Lib/fontTools/ttLib/tables/_n_a_m_e.py')
-rw-r--r-- | Lib/fontTools/ttLib/tables/_n_a_m_e.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/fontTools/ttLib/tables/_n_a_m_e.py b/Lib/fontTools/ttLib/tables/_n_a_m_e.py index e2895338..b1ef1f49 100644 --- a/Lib/fontTools/ttLib/tables/_n_a_m_e.py +++ b/Lib/fontTools/ttLib/tables/_n_a_m_e.py @@ -89,7 +89,7 @@ class table__n_a_m_e(DefaultTable.DefaultTable): return None # not found def __cmp__(self, other): - if type(self) != type(other): return cmp(type(self), type(other)) + if not isinstance(self, type(other)): return cmp(type(self), type(other)) if self.__class__ != other.__class__: return cmp(self.__class__, other.__class__) return cmp(self.names, other.names) @@ -138,7 +138,7 @@ class NameRecord: """Compare method, so a list of NameRecords can be sorted according to the spec by just sorting it...""" - if type(self) != type(other): return cmp(type(self), type(other)) + if not isinstance(self, type(other)): return cmp(type(self), type(other)) selftuple = ( getattr(self, "platformID", None), |