Suggestion: use 'var in tuple' instead of chained comparisons.

This commit is contained in:
DWesl 2021-11-03 21:26:55 -04:00
parent b542da8eb5
commit 29b92391bc

View File

@ -887,9 +887,7 @@ class pil_build_ext(build_ext):
else:
self._remove_extension("PIL._webp")
tk_libs = (
["psapi"] if (sys.platform == "win32" or sys.platform == "cygwin") else []
)
tk_libs = ["psapi"] if sys.platform in ("win32", "cygwin") else []
self._update_extension("PIL._imagingtk", tk_libs)
build_ext.build_extensions(self)