Skip to content

Commit 29b9239

Browse files
committed
Suggestion: use 'var in tuple' instead of chained comparisons.
1 parent b542da8 commit 29b9239

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

setup.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -887,9 +887,7 @@ def build_extensions(self):
887887
else:
888888
self._remove_extension("PIL._webp")
889889

890-
tk_libs = (
891-
["psapi"] if (sys.platform == "win32" or sys.platform == "cygwin") else []
892-
)
890+
tk_libs = ["psapi"] if sys.platform in ("win32", "cygwin") else []
893891
self._update_extension("PIL._imagingtk", tk_libs)
894892

895893
build_ext.build_extensions(self)

0 commit comments

Comments
 (0)