py23 Use new-style classes
Such that we get the same semantics in both Python 2 and 3.
diff --git a/Lib/fontTools/misc/homeResFile.py b/Lib/fontTools/misc/homeResFile.py
index 409f30d..dc61c2f 100644
--- a/Lib/fontTools/misc/homeResFile.py
+++ b/Lib/fontTools/misc/homeResFile.py
@@ -51,7 +51,7 @@
ioFCBParID: l
"""
-class ParamBlock:
+class ParamBlock(object):
"""Wrapper for the very low level FCBPB record."""
diff --git a/Lib/fontTools/misc/psCharStrings.py b/Lib/fontTools/misc/psCharStrings.py
index 84e9a69..34ace23 100644
--- a/Lib/fontTools/misc/psCharStrings.py
+++ b/Lib/fontTools/misc/psCharStrings.py
@@ -35,7 +35,7 @@
realNibblesDict[realNibbles[_i]] = _i
-class ByteCodeBase:
+class ByteCodeBase(object):
def read_byte(self, b0, data, index):
return b0 - 139, index
@@ -482,7 +482,7 @@
self.width = extractor.width
-class SimpleT2Decompiler:
+class SimpleT2Decompiler(object):
def __init__(self, localSubrs, globalSubrs):
self.localSubrs = localSubrs
diff --git a/Lib/fontTools/misc/sstruct.py b/Lib/fontTools/misc/sstruct.py
index 4c286e0..722762d 100644
--- a/Lib/fontTools/misc/sstruct.py
+++ b/Lib/fontTools/misc/sstruct.py
@@ -185,7 +185,7 @@
print('size:', calcsize(format))
- class foo:
+ class foo(object):
pass
i = foo()
diff --git a/Lib/fontTools/misc/transform.py b/Lib/fontTools/misc/transform.py
index fed8e9b..a7e8539 100644
--- a/Lib/fontTools/misc/transform.py
+++ b/Lib/fontTools/misc/transform.py
@@ -66,7 +66,7 @@
return v
-class Transform:
+class Transform(object):
"""2x2 transformation matrix plus offset, a.k.a. Affine transform.
Transform instances are immutable: all transforming methods, eg.
diff --git a/Lib/fontTools/misc/xmlReader.py b/Lib/fontTools/misc/xmlReader.py
index 8671793..085e057 100644
--- a/Lib/fontTools/misc/xmlReader.py
+++ b/Lib/fontTools/misc/xmlReader.py
@@ -11,7 +11,7 @@
BUFSIZE = 0x4000
-class XMLReader:
+class XMLReader(object):
def __init__(self, fileName, ttFont, progress=None, quiet=False):
self.ttFont = ttFont
@@ -116,7 +116,7 @@
self.root = None
-class ProgressPrinter:
+class ProgressPrinter(object):
def __init__(self, title, maxval=100):
print(title)
diff --git a/Lib/fontTools/misc/xmlWriter.py b/Lib/fontTools/misc/xmlWriter.py
index 11e8289..6862e91 100644
--- a/Lib/fontTools/misc/xmlWriter.py
+++ b/Lib/fontTools/misc/xmlWriter.py
@@ -9,7 +9,7 @@
INDENT = " "
-class XMLWriter:
+class XMLWriter(object):
def __init__(self, fileOrPath, indentwhite=INDENT, idlefunc=None):
if not hasattr(fileOrPath, "write"):