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: else:
self._remove_extension("PIL._webp") self._remove_extension("PIL._webp")
tk_libs = ( tk_libs = ["psapi"] if sys.platform in ("win32", "cygwin") else []
["psapi"] if (sys.platform == "win32" or sys.platform == "cygwin") else []
)
self._update_extension("PIL._imagingtk", tk_libs) self._update_extension("PIL._imagingtk", tk_libs)
build_ext.build_extensions(self) build_ext.build_extensions(self)