2to3 --fix=types manual additions
Don't know why the tool didn't catch these.
diff --git a/Lib/fontTools/ttLib/tables/otBase.py b/Lib/fontTools/ttLib/tables/otBase.py
index 98bc2d4..a2a1077 100644
--- a/Lib/fontTools/ttLib/tables/otBase.py
+++ b/Lib/fontTools/ttLib/tables/otBase.py
@@ -1,7 +1,6 @@
from .DefaultTable import DefaultTable
from . import otData
import struct
-from types import TupleType
class OverflowErrorRecord:
def __init__(self, overflowTuple):
@@ -828,12 +827,12 @@
for k, v in attrs.items():
setattr(self, k, int(v))
for element in content:
- if not isinstance(element, TupleType):
+ if not isinstance(element, tuple):
continue
name, attrs, content = element
value = getattr(otTables, name)()
for elem2 in content:
- if not isinstance(elem2, TupleType):
+ if not isinstance(elem2, tuple):
continue
name2, attrs2, content2 = elem2
value.fromXML(name2, attrs2, content2, font)