aboutsummaryrefslogtreecommitdiff
path: root/Lib/fontTools/ttLib/tables/_n_a_m_e.py
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2013-11-27 04:15:34 -0500
committerBehdad Esfahbod <behdad@behdad.org>2013-11-27 04:15:34 -0500
commitac1b4359467ca3deab03186a15eae1d55eb35567 (patch)
treef78544837f4a9576c082c3ed16fdecc7a831dcdd /Lib/fontTools/ttLib/tables/_n_a_m_e.py
parentc2e2e835ec4af747397e3aa1d6c3bb1c8bf021ea (diff)
downloadfonttools-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.py4
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),