@@ -1409,8 +1409,7 @@ def convert_psfrags(tmpfile, psfrags, font_preamble, custom_preamble,
14091409 latexfile = latexfile .replace ("\\ " , "/" )
14101410 # Replace ~ so Latex does not think it is line break
14111411 latexfile = latexfile .replace ("~" , "\\ string~" )
1412- command = [str ("latex" ), "-interaction=nonstopmode" ,
1413- '"%s"' % latexfile ]
1412+ command = ["latex" , "-interaction=nonstopmode" , '"%s"' % latexfile ]
14141413 _log .debug ('%s' , command )
14151414 try :
14161415 report = subprocess .check_output (command , cwd = tmpdir ,
@@ -1424,7 +1423,7 @@ def convert_psfrags(tmpfile, psfrags, font_preamble, custom_preamble,
14241423 exc .output .decode ("utf-8" ))))
14251424 _log .debug (report )
14261425
1427- command = [str ( 'dvips' ) , '-q' , '-R0' , '-o' , os .path .basename (psfile ),
1426+ command = ['dvips' , '-q' , '-R0' , '-o' , os .path .basename (psfile ),
14281427 os .path .basename (dvifile )]
14291428 _log .debug (command )
14301429 try :
@@ -1525,7 +1524,7 @@ def xpdf_distill(tmpfile, eps=False, ptype='letter', bbox=None, rotated=False):
15251524
15261525 # Pass options as `-foo#bar` instead of `-foo=bar` to keep Windows happy
15271526 # (https://www.ghostscript.com/doc/9.22/Use.htm#MS_Windows).
1528- command = [str ( "ps2pdf" ) ,
1527+ command = ["ps2pdf" ,
15291528 "-dAutoFilterColorImages#false" ,
15301529 "-dAutoFilterGrayImages#false" ,
15311530 "-dAutoRotatePages#false" ,
@@ -1544,7 +1543,7 @@ def xpdf_distill(tmpfile, eps=False, ptype='letter', bbox=None, rotated=False):
15441543 '\n \n ' % exc .output .decode ("utf-8" )))
15451544 _log .debug (report )
15461545
1547- command = [str ( "pdftops" ) , "-paper" , "match" , "-level2" , pdffile , psfile ]
1546+ command = ["pdftops" , "-paper" , "match" , "-level2" , pdffile , psfile ]
15481547 _log .debug (command )
15491548 try :
15501549 report = subprocess .check_output (command , stderr = subprocess .STDOUT )
0 commit comments