aboutsummaryrefslogtreecommitdiff
path: root/Tests/ttLib/tables/ttProgram_test.py
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/ttLib/tables/ttProgram_test.py')
-rw-r--r--Tests/ttLib/tables/ttProgram_test.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Tests/ttLib/tables/ttProgram_test.py b/Tests/ttLib/tables/ttProgram_test.py
index 0bc14ab2..be6e86a0 100644
--- a/Tests/ttLib/tables/ttProgram_test.py
+++ b/Tests/ttLib/tables/ttProgram_test.py
@@ -1,10 +1,9 @@
-from fontTools.misc.py23 import *
from fontTools.misc.xmlWriter import XMLWriter
from fontTools.ttLib.tables.ttProgram import Program
from fontTools.misc.textTools import deHexStr
import array
+from io import StringIO
import os
-import re
import unittest
CURR_DIR = os.path.abspath(os.path.dirname(os.path.realpath(__file__)))
@@ -104,7 +103,7 @@ class ProgramTest(unittest.TestCase):
p = Program()
p.fromBytecode(BYTECODE)
ttfont = TestFont()
- buf = UnicodeIO()
+ buf = StringIO()
writer = XMLWriter(buf, newlinestr='\n')
try:
p.toXML(writer, ttfont)