File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -78,12 +78,12 @@ this module for those platforms.
78
78
79
79
Sets new limits of consumption of *resource *. The *limits * argument must be a
80
80
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
82
82
unlimited.
83
83
84
84
Raises :exc: `ValueError ` if an invalid resource is specified, if the new soft
85
85
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
87
87
system limit for that resource is not unlimited will result in a
88
88
:exc: `ValueError `. A process with the effective UID of super-user can
89
89
request any valid limit value, including unlimited, but :exc: `ValueError `
@@ -93,7 +93,7 @@ this module for those platforms.
93
93
``setrlimit `` may also raise :exc: `error ` if the underlying system call
94
94
fails.
95
95
96
- VxWorks only supports setting :data : `RLIMIT_NOFILE `.
96
+ VxWorks only supports setting :const : `RLIMIT_NOFILE `.
97
97
98
98
.. audit-event :: resource.setrlimit resource,limits resource.setrlimit
99
99
You can’t perform that action at this time.
0 commit comments