2to3 --fix=import
diff --git a/Lib/fontTools/ttLib/tables/otBase.py b/Lib/fontTools/ttLib/tables/otBase.py
index 5c432b4..d4f950a 100644
--- a/Lib/fontTools/ttLib/tables/otBase.py
+++ b/Lib/fontTools/ttLib/tables/otBase.py
@@ -1,5 +1,5 @@
-from DefaultTable import DefaultTable
-import otData
+from .DefaultTable import DefaultTable
+from . import otData
import struct
from types import TupleType
@@ -30,7 +30,7 @@
"""
def decompile(self, data, font):
- import otTables
+ from . import otTables
cachingStats = None if True else {}
class GlobalState:
def __init__(self, tableType, cachingStats):
@@ -87,7 +87,7 @@
self.table.toXML2(writer, font)
def fromXML(self, (name, attrs, content), font):
- import otTables
+ from . import otTables
if not hasattr(self, "table"):
tableClass = getattr(otTables, self.tableTag)
self.table = tableClass()
@@ -763,7 +763,7 @@
value = reader.readUShort()
if isDevice:
if value:
- import otTables
+ from . import otTables
subReader = reader.getSubReader(value)
value = getattr(otTables, name)()
value.decompile(subReader, font)
@@ -825,7 +825,7 @@
xmlWriter.newline()
def fromXML(self, (name, attrs, content), font):
- import otTables
+ from . import otTables
for k, v in attrs.items():
setattr(self, k, int(v))
for element in content: