diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-08-02 19:13:07 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-02 19:13:07 (GMT) |
commit | 72cad6cfe5e8d0b424bdd224feee6a22631ec3e6 (patch) | |
tree | 2254c6bea85fbfc25db23b73174a62b5ecd6ee59 /Doc/tools | |
parent | 698b52c8791122e1e2a0aaa8708544c1a7cda68f (diff) | |
download | cpython-72cad6cfe5e8d0b424bdd224feee6a22631ec3e6.zip cpython-72cad6cfe5e8d0b424bdd224feee6a22631ec3e6.tar.gz cpython-72cad6cfe5e8d0b424bdd224feee6a22631ec3e6.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>
(cherry picked from commit e3b6ff19aaa318a813130ba9ad2ab0a332f27feb)
Co-authored-by: Christian Heimes <christian@python.org>
Diffstat (limited to 'Doc/tools')
-rw-r--r-- | Doc/tools/extensions/pyspecific.py | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/Doc/tools/extensions/pyspecific.py b/Doc/tools/extensions/pyspecific.py index a795e05..f326e77 100644 --- a/Doc/tools/extensions/pyspecific.py +++ b/Doc/tools/extensions/pyspecific.py @@ -144,11 +144,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): @@ -160,9 +160,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() |