@@ -52,10 +52,10 @@ def get_fontspec():
52
52
latex_fontspec = []
53
53
texcommand = get_texcommand ()
54
54
55
- if texcommand is not "pdflatex" :
55
+ if texcommand != "pdflatex" :
56
56
latex_fontspec .append ("\\ usepackage{fontspec}" )
57
57
58
- if texcommand is not "pdflatex" and rcParams .get ("pgf.rcfonts" , True ):
58
+ if texcommand != "pdflatex" and rcParams .get ("pgf.rcfonts" , True ):
59
59
# try to find fonts from rc parameters
60
60
families = ["serif" , "sans-serif" , "monospace" ]
61
61
fontspecs = [r"\setmainfont{%s}" , r"\setsansfont{%s}" ,
@@ -139,7 +139,7 @@ def _font_properties_str(prop):
139
139
family = prop .get_family ()[0 ]
140
140
if family in families :
141
141
commands .append (families [family ])
142
- elif family in system_fonts and get_texcommand () is not "pdflatex" :
142
+ elif family in system_fonts and get_texcommand () != "pdflatex" :
143
143
commands .append (r"\setmainfont{%s}\rmfamily" % family )
144
144
else :
145
145
pass # print warning?
@@ -173,7 +173,7 @@ def make_pdf_to_png_converter():
173
173
pass
174
174
# check for ghostscript
175
175
try :
176
- gs = "gs" if sys .platform is not "win32" else "gswin32c"
176
+ gs = "gs" if sys .platform != "win32" else "gswin32c"
177
177
check_output ([gs , "-v" ], stderr = subprocess .STDOUT )
178
178
tools_available .append ("gs" )
179
179
except :
0 commit comments