Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 96e744a

Browse files
committed
Fix Python3 on test_dviread
1 parent 8a60905 commit 96e744a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/tests/test_dviread.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ def test_dviread():
6565
with open(os.path.join(dir, 'test.json')) as f:
6666
correct = json.load(f)
6767
with dr.Dvi(os.path.join(dir, 'test.dvi'), None) as dvi:
68-
data = [{'text': [[t.x, t.y, unichr(t.glyph),
69-
unicode(t.font.texname), round(t.font.size, 2)]
68+
data = [{'text': [[t.x, t.y, six.unichr(t.glyph),
69+
six.text_type(t.font.texname), round(t.font.size, 2)]
7070
for t in page.text],
7171
'boxes': [[b.x, b.y, b.height, b.width] for b in page.boxes]}
7272
for page in dvi]

0 commit comments

Comments
 (0)