Skip to content

Commit 1d86406

Browse files
committed
flush before reading the contents back from tmp file
1 parent b7d6d30 commit 1d86406

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/matplotlib/backends/backend_ps.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -978,6 +978,8 @@ def print_figure_impl(fh):
978978
font.get_char_index(c) for c in chars
979979
]
980980
tmp.write(fontdata.getvalue())
981+
tmp.flush()
982+
981983
# TODO: allow convert_ttf_to_ps
982984
# to input file objects (BytesIO)
983985
convert_ttf_to_ps(

0 commit comments

Comments
 (0)