Skip to content

Commit

Permalink
chore: use https for links (#4532)
Browse files Browse the repository at this point in the history
  • Loading branch information
imba-tjd committed Jan 13, 2023
1 parent 3e606d3 commit b0de7de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions etc/scripts/docenizers/docenizer-amd64.py
Expand Up @@ -107,7 +107,7 @@
]
# Where to extract the asmdoc archive.
ASMDOC_DIR = "asm-docs"
ARCHIVE_URL = "http://www.felixcloutier.com/x86/x86.tbz2"
ARCHIVE_URL = "https://www.felixcloutier.com/x86/x86.tbz2"
ARCHIVE_NAME = "x86.tbz2"


Expand All @@ -123,7 +123,7 @@ def __str__(self):


def get_url_for_instruction(instr):
return f"http://www.felixcloutier.com/x86/{urllib.parse.quote(instr.name)}.html"
return f"https://www.felixcloutier.com/x86/{urllib.parse.quote(instr.name)}.html"


def download_asm_doc_archive(downloadfolder):
Expand Down Expand Up @@ -222,7 +222,7 @@ def add_all(instrs):
for link in para.find_all('a'):
# this urljoin will only ensure relative urls are prefixed
# if a url is already absolute it does nothing
link['href'] = urllib.parse.urljoin('http://www.felixcloutier.com/x86/', link['href'])
link['href'] = urllib.parse.urljoin('https://www.felixcloutier.com/x86/', link['href'])
link['target'] = '_blank'
link['rel'] = 'noreferrer noopener'

Expand Down

0 comments on commit b0de7de

Please sign in to comment.