py23 Use new-style classes
Such that we get the same semantics in both Python 2 and 3.
diff --git a/Lib/fontTools/ttLib/tables/otBase.py b/Lib/fontTools/ttLib/tables/otBase.py
index e617938..bf010b5 100644
--- a/Lib/fontTools/ttLib/tables/otBase.py
+++ b/Lib/fontTools/ttLib/tables/otBase.py
@@ -3,7 +3,7 @@
from .DefaultTable import DefaultTable
import struct
-class OverflowErrorRecord:
+class OverflowErrorRecord(object):
def __init__(self, overflowTuple):
self.tableType = overflowTuple[0]
self.LookupListIndex = overflowTuple[1]
@@ -32,7 +32,7 @@
def decompile(self, data, font):
from . import otTables
cachingStats = None if True else {}
- class GlobalState:
+ class GlobalState(object):
def __init__(self, tableType, cachingStats):
self.tableType = tableType
self.cachingStats = cachingStats
@@ -73,7 +73,7 @@
If a lookup subtable overflows an offset, we have to start all over.
"""
- class GlobalState:
+ class GlobalState(object):
def __init__(self, tableType):
self.tableType = tableType
globalState = GlobalState(tableType=self.tableTag)
@@ -468,7 +468,7 @@
return OverflowErrorRecord( (self.globalState.tableType, LookupListIndex, SubTableIndex, itemName, itemIndex) )
-class CountReference:
+class CountReference(object):
"""A reference to a Count value, not a count of references."""
def __init__(self, table, name):
self.table = table
@@ -740,7 +740,7 @@
valueRecordFormatDict = _buildDict()
-class ValueRecordFactory:
+class ValueRecordFactory(object):
"""Given a format code, this object convert ValueRecords."""
@@ -788,7 +788,7 @@
writer.writeUShort(value)
-class ValueRecord:
+class ValueRecord(object):
# see ValueRecordFactory