From 3e187a4472c410f66e40b84083f83b530469bf65 Mon Sep 17 00:00:00 2001 From: Saul Shanabrook Date: Mon, 26 Feb 2018 14:19:37 -0500 Subject: [PATCH] Remove dead code for manual pdf cleanup --- nbconvert/exporters/pdf.py | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/nbconvert/exporters/pdf.py b/nbconvert/exporters/pdf.py index 7620866d7..d9998a9e8 100644 --- a/nbconvert/exporters/pdf.py +++ b/nbconvert/exporters/pdf.py @@ -61,10 +61,6 @@ class PDFExporter(LatexExporter): help="Whether to display the output of latex commands." ).tag(config=True) - temp_file_exts = List(['.aux', '.bbl', '.blg', '.idx', '.log', '.out'], - help="File extensions of temp files to remove after running." - ).tag(config=True) - texinputs = Unicode(help="texinputs dir. A notebook's directory is added") writer = Instance("nbconvert.writers.FilesWriter", args=(), kw={'build_directory': '.'}) @@ -155,16 +151,6 @@ def log_error(command, out): self.log.debug(u"%s output: %s\n%s", command[0], command, out) return self.run_command(self.bib_command, filename, 1, log_error) - - def clean_temp_files(self, filename): - """Remove temporary files created by xelatex/bibtex.""" - self.log.info("Removing temporary LaTeX files") - filename = os.path.splitext(filename)[0] - for ext in self.temp_file_exts: - try: - os.remove(filename+ext) - except OSError: - pass def from_notebook_node(self, nb, resources=None, **kw): latex, resources = super(PDFExporter, self).from_notebook_node(