Skip to content

Commit

Permalink
TexManager: transform bytes-object to string before searching for box…
Browse files Browse the repository at this point in the history
… information
  • Loading branch information
tomspur committed Apr 9, 2017
1 parent 727b7cd commit 2ab7a36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/matplotlib/texmanager.py
Expand Up @@ -459,7 +459,7 @@ def make_dvi_preview(self, tex, fontsize):

# find the box extent information in the latex output
# file and store them in ".baseline" file
m = TexManager._re_vbox.search(report)
m = TexManager._re_vbox.search(report.decode("utf-8"))
with open(basefile + '.baseline', "w") as fh:
fh.write(" ".join(m.groups()))

Expand Down

0 comments on commit 2ab7a36

Please sign in to comment.