Skip to content

Commit

Permalink
Update Python documentation download logic and adjust version check f…
Browse files Browse the repository at this point in the history
…or minor version
  • Loading branch information
robmoss2k committed Dec 16, 2024
1 parent b25db7f commit 8b7cb75
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions automatic/python3-streams/update.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ function global:au_SearchReplace {

function SetCopyright {
# download Python documentation archive
Add-Content -Path ".\log.txt" -Value "Downloading $($Latest.ZipUrl)"
$webrequest = [System.Net.HttpWebRequest]::Create($Latest.ZipUrl)
$response_stream = $webrequest.GetResponse().GetResponseStream()
$zip = [IO.Compression.ZipArchive]::new($response_stream)
Expand Down Expand Up @@ -141,7 +140,7 @@ function GetStreams() {
$version = Get-Version $latest_version

$urls = $all_versions[$latest_version]
if ($minor_version -le '12') {
if ($minor_version -le '11') {
$zip_name = "python-$latest_version-docs-text"
} else {
$zip_name = "python-$versionTwoPart-docs-text"
Expand Down

0 comments on commit 8b7cb75

Please sign in to comment.