From e1d97b827791a4d190fbd0ec597f602aefd09025 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 27 Nov 2013 05:57:39 -0500 Subject: [PATCH] 2to3 replace use of module new --- Lib/fontTools/ttLib/tables/otTables.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Lib/fontTools/ttLib/tables/otTables.py b/Lib/fontTools/ttLib/tables/otTables.py index ea1330cea..ef9a44ee7 100644 --- a/Lib/fontTools/ttLib/tables/otTables.py +++ b/Lib/fontTools/ttLib/tables/otTables.py @@ -640,7 +640,7 @@ def fixSubTableOverFlows(ttf, overflowRecord): def _buildClasses(): - import new, re + import re from .otData import otData formatPat = re.compile("([A-Za-z0-9]+)Format(\d+)$") @@ -656,13 +656,13 @@ def _buildClasses(): baseClass = FormatSwitchingBaseTable if name not in namespace: # the class doesn't exist yet, so the base implementation is used. - cls = new.classobj(name, (baseClass,), {}) + cls = type(name, (baseClass,), {}) namespace[name] = cls for base, alts in _equivalents.items(): base = namespace[base] for alt in alts: - namespace[alt] = new.classobj(alt, (base,), {}) + namespace[alt] = type(alt, (base,), {}) global lookupTypes lookupTypes = {