[O_S_2f_2] replace print with logger
This commit is contained in:
parent
7d67e9c257
commit
e46be4d7d6
@ -3,9 +3,11 @@ from fontTools.misc.py23 import *
|
||||
from fontTools.misc import sstruct
|
||||
from fontTools.misc.textTools import safeEval, num2binary, binary2num
|
||||
from fontTools.ttLib.tables import DefaultTable
|
||||
import warnings
|
||||
import logging
|
||||
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
# panose classification
|
||||
|
||||
panoseFormat = """
|
||||
@ -116,7 +118,7 @@ class table_O_S_2f_2(DefaultTable.DefaultTable):
|
||||
from fontTools import ttLib
|
||||
raise ttLib.TTLibError("unknown format for OS/2 table: version %s" % self.version)
|
||||
if len(data):
|
||||
warnings.warn("too much 'OS/2' table data")
|
||||
log.warning("too much 'OS/2' table data")
|
||||
|
||||
self.panose = sstruct.unpack(panoseFormat, self.panose, Panose())
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user