added missing import

This commit is contained in:
justvanrossum 2017-03-14 12:00:13 +01:00
parent ffb68042dc
commit b05f2039b5

View File

@ -39,6 +39,7 @@ class SFNTResourceReader(BytesIO):
"""Simple read-only file wrapper for 'sfnt' resources."""
def __init__(self, path, res_name_or_index):
from fontTools import ttLib
reader = ResourceReader(path)
if isinstance(res_name_or_index, basestring):
rsrc = reader.getNamedResource('sfnt', res_name_or_index)