From b9586ff78eae21c22322c01efecf86d12012b6d5 2020-10-13 13:35:35 From: Matthias Bussonnier Date: 2020-10-13 13:35:35 Subject: [PATCH] autoreformat with darker --- diff --git a/IPython/lib/latextools.py b/IPython/lib/latextools.py index aa1504a..2dfec65 100644 --- a/IPython/lib/latextools.py +++ b/IPython/lib/latextools.py @@ -143,7 +143,7 @@ def latex_to_png_dvipng(s, wrap, color='Black', scale=1.0): dvifile = workdir.joinpath("tmp.dvi") outfile = workdir.joinpath("tmp.png") - with tmpfile.open("w", encoding='utf8') as f: + with tmpfile.open("w", encoding="utf8") as f: f.writelines(genelatex(s, wrap)) with open(os.devnull, 'wb') as devnull: