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

Skip to content

Commit 8bfe11e

Browse files
committed
Use single bytestring
1 parent 7c7c135 commit 8bfe11e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/backends/backend_pgf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1108,7 +1108,7 @@ def close(self):
11081108
Finalize this object, running LaTeX in a temporary directory
11091109
and moving the final pdf file to `filename`.
11101110
"""
1111-
self._file.write(r'\end{document}'.encode('utf-8') + b'\n')
1111+
self._file.write(rb'\end{document}\n')
11121112
self._file.close()
11131113

11141114
if self._n_figures > 0:

0 commit comments

Comments
 (0)