From b289d7456d21a0a1c5c66dd4ee654e1ee4a0e027 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Sun, 20 Nov 2022 20:09:25 +0100 Subject: Apply refurb suggestions [FURB108]: Use `x in (y, z)` instead of `x == y or x == z` --- distutils/command/install.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'distutils/command') diff --git a/distutils/command/install.py b/distutils/command/install.py index 08d2f881..a1f8209a 100644 --- a/distutils/command/install.py +++ b/distutils/command/install.py @@ -609,7 +609,7 @@ class install(Command): for attr in attrs: val = getattr(self, attr) if val is not None: - if os.name == 'posix' or os.name == 'nt': + if os.name in ('posix', 'nt'): val = os.path.expanduser(val) val = subst_vars(val, self.config_vars) setattr(self, attr, val) -- cgit v1.2.1