Skip to content

Commit 5406dce

Browse files
committed
Define audit-event open parameters consistently
as in Doc/library/io.rst: .. audit-event:: open path,mode,flags io.open Doc/library/os.rst: .. audit-event:: open path,mode,flags os.open to avoid triggering a race-condition in Sphinx that causes non-deterministic output. See https://reproducible-builds.org/ for why this matters. Fixes: #121874 This patch was done while working on reproducible builds for openSUSE, sponsored by the NLnet NGI0 fund.
1 parent f036a46 commit 5406dce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/functions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1509,7 +1509,7 @@ are always available. They are listed here in alphabetical order.
15091509
(where :func:`open` is declared), :mod:`os`, :mod:`os.path`, :mod:`tempfile`,
15101510
and :mod:`shutil`.
15111511

1512-
.. audit-event:: open file,mode,flags open
1512+
.. audit-event:: open path,mode,flags open
15131513

15141514
The ``mode`` and ``flags`` arguments may have been modified or inferred from
15151515
the original call.

0 commit comments

Comments
 (0)