Skip to content

Commit 4104984

Browse files
authored
Merge pull request #10471 from matplotlib/auto-backport-of-pr-10467
Backport PR #10467 on branch v2.2.x
2 parents 4381af0 + 3de3605 commit 4104984

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/afm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
... 'fonts', 'afm', 'ptmr8a.afm')
2020
>>>
2121
>>> from matplotlib.afm import AFM
22-
>>> with open(afm_fname) as fh:
22+
>>> with open(afm_fname, 'rb') as fh:
2323
... afm = AFM(fh)
2424
>>> afm.string_width_height('What the heck?')
2525
(6220.0, 694)

0 commit comments

Comments
 (0)