Fix improper string comparisons.

This commit is contained in:
David Shrewsbury 2012-10-25 09:51:11 -04:00
parent 7df00fb1c8
commit 59843efc86
2 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@ import sys
# Add any Sphinx extension module names here, as strings. They can be
# extensions coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
if sys.platform is not 'darwin':
if sys.platform != 'darwin':
extensions = ['rst2pdf.pdfbuilder']
# Add any paths that contain templates here, relative to this directory.

View File

@ -37,7 +37,7 @@ try:
def run(self):
# too hard to build PDFs on Mac
builders = ['html', 'man']
if sys.platform is not 'darwin':
if sys.platform != 'darwin':
builders.append('pdf')
for builder in builders:
self.builder = builder
@ -51,7 +51,7 @@ ci_cmdclass['test'] = PyTest
setup_reqs = ['Sphinx']
if sys.platform is not 'darwin':
if sys.platform != 'darwin':
setup_reqs.append('rst2pdf')
setuptools.setup(