Convert warning to warnings module

This commit is contained in:
Behdad Esfahbod 2013-12-04 21:15:36 -05:00
parent 19d7cf2b5f
commit f4e39bf363

View File

@ -31,7 +31,7 @@ class table__h_m_t_x(DefaultTable.DefaultTable):
if sys.byteorder != "big":
sideBearings.byteswap()
if data:
sys.stderr.write("too much data for hmtx/vmtx table\n")
warnings.warn("too much 'hmtx'/'vmtx' table data")
self.metrics = {}
for i in range(numberOfMetrics):
glyphName = ttFont.getGlyphName(i)