summaryrefslogtreecommitdiff
path: root/distutils/command/install.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2023-02-06 12:15:32 -0500
committerGitHub <noreply@github.com>2023-02-06 12:15:32 -0500
commitb504971d65113b0fa603bf55199e2e032f041f8e (patch)
treeafbf4504ee4b74e05cc60c8ef07b703314de5180 /distutils/command/install.py
parent2fe57ea40e9474964fd2bc45bfaabb7cebbdc949 (diff)
parent1713e720352fc6797d07dd7b61e9bafaed7b8e20 (diff)
downloadpython-setuptools-git-b504971d65113b0fa603bf55199e2e032f041f8e.tar.gz
Merge pull request #191 from DimitriPapadopoulos/refurb
Apply refurb suggestions
Diffstat (limited to 'distutils/command/install.py')
-rw-r--r--distutils/command/install.py2
1 files changed, 1 insertions, 1 deletions
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)