@@ -290,8 +290,10 @@ def make_dvi(self, tex, fontsize):
290
290
# final output dir ensures that they are on the same filesystem,
291
291
# and thus replace() works atomically.
292
292
with TemporaryDirectory (dir = Path (dvifile ).parent ) as tmpdir :
293
- shutil .copy (
294
- cbook ._get_data_path (Path ("latex" ).joinpath ("underscore.sty" )), tmpdir )
293
+ shutil .copy (cbook ._get_data_path (
294
+ Path ("latex" ).joinpath ("underscore.sty" )),
295
+ tmpdir ,
296
+ )
295
297
self ._run_checked_subprocess (
296
298
["latex" , "-interaction=nonstopmode" , "--halt-on-error" ,
297
299
texfile ], tex , cwd = tmpdir )
@@ -314,8 +316,10 @@ def make_dvi_preview(self, tex, fontsize):
314
316
315
317
if not os .path .exists (dvifile ) or not os .path .exists (baselinefile ):
316
318
texfile = self .make_tex_preview (tex , fontsize )
317
- shutil .copy (cbook ._get_data_path (Path ("latex" ).joinpath ("underscore.sty" )),
318
- Path (texfile ).parent )
319
+ shutil .copy (
320
+ cbook ._get_data_path (Path ("latex" ).joinpath ("underscore.sty" )),
321
+ Path (texfile ).parent ,
322
+ )
319
323
report = self ._run_checked_subprocess (
320
324
["latex" , "-interaction=nonstopmode" , "--halt-on-error" ,
321
325
texfile ], tex )
0 commit comments