Skip to content

Commit b961af4

Browse files
committed
Fix refactor leftover
1 parent 7757bbc commit b961af4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/backends/backend_pgf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1101,7 +1101,7 @@ def _run_latex(self):
11011101
str(texcommand),
11021102
"-interaction=nonstopmode",
11031103
"-halt-on-error",
1104-
os.path.basename(self.fname_tex),
1104+
os.path.basename(self._fname_tex),
11051105
]
11061106
try:
11071107
check_output(cmdargs, stderr=subprocess.STDOUT, cwd=self._tmpdir)
@@ -1111,7 +1111,7 @@ def _run_latex(self):
11111111
% (texcommand, e.output.decode('utf-8')))
11121112

11131113
# copy file contents to target
1114-
with open(self.fname_pdf, "rb") as fh_src, open(self._outputfile, "wb") as fh:
1114+
with open(self._fname_pdf, "rb") as fh_src, open(self._outputfile, "wb") as fh:
11151115
shutil.copyfileobj(fh_src, fh)
11161116

11171117
def savefig(self, figure=None, **kwargs):

0 commit comments

Comments
 (0)