Skip to content

Commit

Permalink
vsdownload: Consistently use "" for string literals
Browse files Browse the repository at this point in the history
The script was mostly consistent before; fix the few minor cases
that were inconsistent.
  • Loading branch information
mstorsjo committed Sep 28, 2024
1 parent 1817990 commit 5f825a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vsdownload.py
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ def unzipFiltered(zip, dest):
def unpackVsix(file, dest, listing):
temp = os.path.join(dest, "vsix")
makedirs(temp)
with zipfile.ZipFile(file, 'r') as zip:
with zipfile.ZipFile(file, "r") as zip:
unzipFiltered(zip, temp)
with open(listing, "w") as f:
for n in zip.namelist():
Expand Down Expand Up @@ -578,7 +578,7 @@ def unpackWin10WDK(src, dest):
kitsPath = os.path.join(dest, "Program Files", "Windows Kits", "10")
brokenBuildDir = os.path.join(kitsPath, "Build")
for buildDir in glob.glob(kitsPath + "/build/10.*/"):
wdkVersion = buildDir.split('/')[-2];
wdkVersion = buildDir.split("/")[-2];
print("Merging WDK 'Build' and 'build' directories into version", wdkVersion);
mergeTrees(brokenBuildDir, buildDir)
shutil.rmtree(brokenBuildDir)
Expand Down

0 comments on commit 5f825a1

Please sign in to comment.