summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2020-10-22 18:00:23 +0000
committerGiampaolo Rodola <g.rodola@gmail.com>2020-10-22 18:00:23 +0000
commit1552ccd14baf586e8e0e3a3a6fa37b07d65838bb (patch)
tree4fb511e9d4ce8a7977052910d5adbce9b82c34be
parenta5f1614ddc5e1c417de4f83fbc75a21b71c1cdca (diff)
downloadpsutil-1552ccd14baf586e8e0e3a3a6fa37b07d65838bb.tar.gz
fix linux
-rw-r--r--psutil/_pslinux.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/psutil/_pslinux.py b/psutil/_pslinux.py
index d5ce358c..86bc3660 100644
--- a/psutil/_pslinux.py
+++ b/psutil/_pslinux.py
@@ -82,9 +82,8 @@ _DEFAULT = object()
# RLIMIT_* constants, not guaranteed to be present on all kernels
if HAS_PRLIMIT:
- for name in dir(cext):
- if name.startswith('RLIM'):
- __extra__all__.append(name)
+ __extra__all__.extend(
+ [x for x in dir(cext_posix) if x.startswith('RLIM') and x.isupper()])
# Number of clock ticks per second
CLOCK_TICKS = os.sysconf("SC_CLK_TCK")