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

Skip to content

Commit b302728

Browse files
committed
Another Python3 bytes/unicode fix
1 parent 7726209 commit b302728

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/backends/backend_ps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1187,7 +1187,7 @@ def write(self, *kl, **kwargs):
11871187

11881188
if passed_in_file_object:
11891189
with open(tmpfile, 'rb') as fh:
1190-
print(fh.read(), file=outfile)
1190+
outfile.write(fh.read())
11911191
else:
11921192
with open(outfile, 'w') as fh:
11931193
pass

0 commit comments

Comments
 (0)