From 59843efc86513d8c7da73f45b56b1f41b162916a Mon Sep 17 00:00:00 2001 From: David Shrewsbury Date: Thu, 25 Oct 2012 09:51:11 -0400 Subject: [PATCH] Fix improper string comparisons. --- doc/conf.py | 2 +- setup.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/conf.py b/doc/conf.py index 3ffd15e6..08cc62a0 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -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. diff --git a/setup.py b/setup.py index 18bcd5bc..cd36258d 100644 --- a/setup.py +++ b/setup.py @@ -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(