Merge pull request #3353 from radarhere/duplicate

Simplified duplicate code
This commit is contained in:
Hugo 2018-09-15 15:29:17 +03:00 committed by GitHub
commit 140606dd00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -524,10 +524,7 @@ class pil_build_ext(build_ext):
if _find_include_file(self, 'tiff.h'): if _find_include_file(self, 'tiff.h'):
if _find_library_file(self, "tiff"): if _find_library_file(self, "tiff"):
feature.tiff = "tiff" feature.tiff = "tiff"
if (sys.platform == "win32" and if (sys.platform in ["win32", "darwin"] and
_find_library_file(self, "libtiff")):
feature.tiff = "libtiff"
if (sys.platform == "darwin" and
_find_library_file(self, "libtiff")): _find_library_file(self, "libtiff")):
feature.tiff = "libtiff" feature.tiff = "libtiff"