diff options
Diffstat (limited to 'Tests/ttLib/tables/tables_test.py')
-rw-r--r-- | Tests/ttLib/tables/tables_test.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Tests/ttLib/tables/tables_test.py b/Tests/ttLib/tables/tables_test.py index b031b48f..f66323fb 100644 --- a/Tests/ttLib/tables/tables_test.py +++ b/Tests/ttLib/tables/tables_test.py @@ -1,5 +1,5 @@ -from fontTools.misc.py23 import * from fontTools.ttLib import TTFont, tagToXML +from io import StringIO import os import sys import re @@ -253,13 +253,13 @@ def read_expected_ttx(testfile, tableTag): def dump_ttx(font, tableTag): - f = UnicodeIO() + f = StringIO() font.saveXML(f, newlinestr='\n', tables=[tableTag]) return ttLibVersion_RE.sub('', f.getvalue()) def load_ttx(ttx): - f = UnicodeIO() + f = StringIO() f.write(ttx) f.seek(0) font = TTFont() |