Skip to content

Commit e39255e

Browse files
Update the availability info in the resource docs (GH-137922)
1 parent 8700404 commit e39255e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/library/resource.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,12 @@ this module for those platforms.
7878

7979
Sets new limits of consumption of *resource*. The *limits* argument must be a
8080
tuple ``(soft, hard)`` of two integers describing the new limits. A value of
81-
:data:`~resource.RLIM_INFINITY` can be used to request a limit that is
81+
:const:`~resource.RLIM_INFINITY` can be used to request a limit that is
8282
unlimited.
8383

8484
Raises :exc:`ValueError` if an invalid resource is specified, if the new soft
8585
limit exceeds the hard limit, or if a process tries to raise its hard limit.
86-
Specifying a limit of :data:`~resource.RLIM_INFINITY` when the hard or
86+
Specifying a limit of :const:`~resource.RLIM_INFINITY` when the hard or
8787
system limit for that resource is not unlimited will result in a
8888
:exc:`ValueError`. A process with the effective UID of super-user can
8989
request any valid limit value, including unlimited, but :exc:`ValueError`
@@ -93,7 +93,7 @@ this module for those platforms.
9393
``setrlimit`` may also raise :exc:`error` if the underlying system call
9494
fails.
9595

96-
VxWorks only supports setting :data:`RLIMIT_NOFILE`.
96+
VxWorks only supports setting :const:`RLIMIT_NOFILE`.
9797

9898
.. audit-event:: resource.setrlimit resource,limits resource.setrlimit
9999

0 commit comments

Comments
 (0)