Skip to content

Commit 548b366

Browse files
committed
gh-153711: Fix os.pipe2 availability directive syntax
The availability extension only accepts comma-separated known platforms (optionally with 'not ' / '>= version'). Free-form prose after 'not WASI.' was parsed as an unknown platform and failed Docs EPUB/doctest with warnings-as-errors.
1 parent e5fbe3b commit 548b366

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Doc/library/os.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1448,8 +1448,7 @@ or `the MSDN <https://msdn.microsoft.com/en-us/library/z0kc8e3z.aspx>`_ on Windo
14481448
Return a pair of file descriptors ``(r, w)`` usable for reading and writing,
14491449
respectively.
14501450

1451-
.. availability:: Unix, not WASI. Availability on macOS requires macOS 27.0
1452-
or later; availability on iOS requires iOS 27.0 or later.
1451+
.. availability:: Unix, not WASI, macOS >= 27.0, iOS >= 27.0.
14531452

14541453
.. versionadded:: 3.3
14551454

0 commit comments

Comments
 (0)