bpo-40443: Remove unused imports in distutils (GH-19802)

This commit is contained in:
Victor Stinner 2020-04-30 11:28:09 +02:00 committed by GitHub
parent 90549676e0
commit e488e300f5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 6 additions and 17 deletions

View file

@ -14,8 +14,6 @@ for older versions in distutils.msvc9compiler and distutils.msvccompiler.
# ported to VS 2015 by Steve Dower
import os
import shutil
import stat
import subprocess
import winreg
@ -65,8 +63,6 @@ def _find_vc2017():
If vswhere.exe is not available, by definition, VS 2017 is not
installed.
"""
import json
root = os.environ.get("ProgramFiles(x86)") or os.environ.get("ProgramFiles")
if not root:
return None, None