From ead121d951f311b7c20781635a82600f71c9ab26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Boulogne?= Date: Wed, 8 Jan 2014 22:07:35 -0500 Subject: [PATCH] MAINT replace is False by not --- PIL/EpsImagePlugin.py | 2 +- Tests/test_file_eps.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/PIL/EpsImagePlugin.py b/PIL/EpsImagePlugin.py index a8706b05f..71269036e 100644 --- a/PIL/EpsImagePlugin.py +++ b/PIL/EpsImagePlugin.py @@ -80,7 +80,7 @@ def Ghostscript(tile, size, fp, scale=1): ] if gs_windows_binary is not None: - if gs_windows_binary is False: + if not gs_windows_binary: raise WindowsError('Unable to locate Ghostscript on paths') command[0] = gs_windows_binary diff --git a/Tests/test_file_eps.py b/Tests/test_file_eps.py index f9f781dd6..ed5c77c99 100644 --- a/Tests/test_file_eps.py +++ b/Tests/test_file_eps.py @@ -3,7 +3,7 @@ from tester import * from PIL import Image, EpsImagePlugin import sys -if EpsImagePlugin.gs_windows_binary is False: +if not EpsImagePlugin.gs_windows_binary: # already checked. Not there. skip()