summaryrefslogtreecommitdiffstats
path: root/Doc/tools/extensions
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2022-08-02 19:00:41 (GMT)
committerGitHub <noreply@github.com>2022-08-02 19:00:41 (GMT)
commite3b6ff19aaa318a813130ba9ad2ab0a332f27feb (patch)
treef67037e53dcc5f0249e84aece4fac7d53d3946f5 /Doc/tools/extensions
parent75a6441718dcbc65d993c9544e67e25bef120e82 (diff)
downloadcpython-e3b6ff19aaa318a813130ba9ad2ab0a332f27feb.zip
cpython-e3b6ff19aaa318a813130ba9ad2ab0a332f27feb.tar.gz
cpython-e3b6ff19aaa318a813130ba9ad2ab0a332f27feb.tar.bz2
gh-95451: Update docs for wasm32-emscripten and -wasi platforms (GH-95452)
Co-authored-by: Éric <merwok@netwok.org> Co-authored-by: Michael Droettboom <mdboom@gmail.com> Co-authored-by: Ezio Melotti <ezio.melotti@gmail.com> Co-authored-by: CAM Gerlach <CAM.Gerlach@Gerlach.CAM>
Diffstat (limited to 'Doc/tools/extensions')
-rw-r--r--Doc/tools/extensions/pyspecific.py14
1 files changed, 6 insertions, 8 deletions
diff --git a/Doc/tools/extensions/pyspecific.py b/Doc/tools/extensions/pyspecific.py
index 20c372e..da15abd 100644
--- a/Doc/tools/extensions/pyspecific.py
+++ b/Doc/tools/extensions/pyspecific.py
@@ -143,11 +143,11 @@ class Availability(Directive):
known_platforms = frozenset({
"AIX", "Android", "BSD", "DragonFlyBSD", "Emscripten", "FreeBSD",
"Linux", "NetBSD", "OpenBSD", "POSIX", "Solaris", "Unix", "VxWorks",
- "WASI", "Windows", "macOS",
- # libc
- "BSD libc", "glibc", "musl",
- # POSIX platforms with pthreads
- "pthreads",
+ "WASI", "Windows", "macOS",
+ # libc
+ "BSD libc", "glibc", "musl",
+ # POSIX platforms with pthreads
+ "pthreads",
})
def run(self):
@@ -159,9 +159,7 @@ class Availability(Directive):
n, m = self.state.inline_text(self.arguments[0], self.lineno)
pnode.extend(n + m)
if self.content:
- content = " " + " ".join(self.content)
- n, m = self.state.inline_text(content, self.content_offset)
- pnode.extend(n + m)
+ self.state.nested_parse(self.content, self.content_offset, pnode)
self.parse_platforms()