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()