We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2738b4 commit 1a9e3e7Copy full SHA for 1a9e3e7
pypandoc/pandoc_download.py
@@ -58,7 +58,8 @@ def _get_pandoc_urls(version="latest"):
58
response = urlopen("https://github.com/jgm/pandoc/releases/expanded_assets/"+version)
59
content = response.read()
60
# regex for the binaries
61
- processor_architecture = "arm" if platform.uname()[4].startswith("arm") else "amd"
+ uname = platform.uname()[4]
62
+ processor_architecture = "arm" if uname.startswith("arm") or uname.startswith("aarch") else "amd"
63
regex = re.compile(r"/jgm/pandoc/releases/download/.*(?:"+processor_architecture+"|x86|mac).*\.(?:msi|deb|pkg)")
64
# a list of urls to the binaries
65
pandoc_urls_list = regex.findall(content.decode("utf-8"))
0 commit comments