Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Commit 7f779f4

Browse files
author
Anselm Kruis
committed
Merge branch 3.8 into 3.8-slp
2 parents e3819fa + a00b5be commit 7f779f4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+812
-178
lines changed

Doc/c-api/exceptions.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -971,9 +971,6 @@ Notes:
971971
This is a base class for other standard exceptions.
972972
973973
(2)
974-
This is the same as :exc:`weakref.ReferenceError`.
975-
976-
(3)
977974
Only defined on Windows; protect code that uses this by testing that the
978975
preprocessor macro ``MS_WINDOWS`` is defined.
979976

Doc/library/fcntl.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ The module defines the following functions:
5757

5858
If the :c:func:`fcntl` fails, an :exc:`OSError` is raised.
5959

60+
.. audit-event:: fcntl.fcntl fd,cmd,arg fcntl.fcntl
61+
6062

6163
.. function:: ioctl(fd, request, arg=0, mutate_flag=True)
6264

@@ -106,6 +108,8 @@ The module defines the following functions:
106108
>>> buf
107109
array('h', [13341])
108110

111+
.. audit-event:: fcntl.ioctl fd,request,arg fcntl.ioctl
112+
109113

110114
.. function:: flock(fd, operation)
111115

@@ -116,6 +120,8 @@ The module defines the following functions:
116120

117121
If the :c:func:`flock` fails, an :exc:`OSError` exception is raised.
118122

123+
.. audit-event:: fcntl.flock fd,operation fcntl.flock
124+
119125

120126
.. function:: lockf(fd, cmd, len=0, start=0, whence=0)
121127

@@ -149,6 +155,8 @@ The module defines the following functions:
149155
The default for *len* is 0 which means to lock to the end of the file. The
150156
default for *whence* is also 0.
151157

158+
.. audit-event:: fcntl.lockf fd,cmd,len,start,whence fcntl.lockf
159+
152160
Examples (all on a SVR4 compliant system)::
153161

154162
import struct, fcntl, os

Doc/library/gettext.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -724,8 +724,8 @@ implementations, and valuable experience to the creation of this module:
724724
.. [#] The default locale directory is system dependent; for example, on RedHat Linux
725725
it is :file:`/usr/share/locale`, but on Solaris it is :file:`/usr/lib/locale`.
726726
The :mod:`gettext` module does not try to support these system dependent
727-
defaults; instead its default is :file:`{sys.prefix}/share/locale` (see
728-
:data:`sys.prefix`). For this reason, it is always best to call
727+
defaults; instead its default is :file:`{sys.base_prefix}/share/locale` (see
728+
:data:`sys.base_prefix`). For this reason, it is always best to call
729729
:func:`bindtextdomain` with an explicit absolute path at the start of your
730730
application.
731731

Doc/library/msvcrt.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ File Operations
4242
regions in a file may be locked at the same time, but may not overlap. Adjacent
4343
regions are not merged; they must be unlocked individually.
4444

45+
.. audit-event:: msvcrt.locking fd,mode,nbytes msvcrt.locking
46+
4547

4648
.. data:: LK_LOCK
4749
LK_RLCK
@@ -77,12 +79,16 @@ File Operations
7779
and :const:`os.O_TEXT`. The returned file descriptor may be used as a parameter
7880
to :func:`os.fdopen` to create a file object.
7981

82+
.. audit-event:: msvcrt.open_osfhandle handle,flags msvcrt.open_osfhandle
83+
8084

8185
.. function:: get_osfhandle(fd)
8286

8387
Return the file handle for the file descriptor *fd*. Raises :exc:`OSError` if
8488
*fd* is not recognized.
8589

90+
.. audit-event:: msvcrt.get_osfhandle fd msvcrt.get_osfhandle
91+
8692

8793
.. _msvcrt-console:
8894

0 commit comments

Comments
 (0)