Skip to content

Commit 71dd4af

Browse files
committed
python supports comparison chains
1 parent a46c240 commit 71dd4af

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

distutils/_msvccompiler.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,7 @@ def _find_exe(exe, paths=None):
181181
def _get_plat_to_vcvars():
182182
# A map keyed by get_platform() return values to values accepted by
183183
# 'vcvarsall.bat'.
184-
host_platform = get_host_platform()
185-
if host_platform == get_platform() and host_platform == "win-arm64":
184+
if get_platform() == get_host_platform() == "win-arm64":
186185
# Use the native MSVC host if the host platform would need expensive
187186
# emulation for x86.
188187
return {

0 commit comments

Comments
 (0)