summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiampaolo Rodola <g.rodola@gmail.com>2015-08-07 12:37:33 +0200
committerGiampaolo Rodola <g.rodola@gmail.com>2015-08-07 12:37:33 +0200
commitafe2d8e6a3087feecfb3505f8a79c1a91d529671 (patch)
tree2631c7a25548c353c5700316d2d21851eac5e320
parent681661ae3a1b082fbc72d4f4a5b611b2783422d0 (diff)
parent4f85b03a87310a6d439b84391ee2261240241e44 (diff)
downloadpsutil-spacewander-patch-1.tar.gz
merge changesspacewander-patch-1
-rw-r--r--psutil/_pslinux.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/psutil/_pslinux.py b/psutil/_pslinux.py
index 7eb25f51..573944fc 100644
--- a/psutil/_pslinux.py
+++ b/psutil/_pslinux.py
@@ -1065,9 +1065,9 @@ class Process(object):
if not PY3 and not isinstance(value, (int, long)):
msg = "value argument is not an integer (gor %r)" % value
raise TypeError(msg)
- if not 0 <= value <= 8:
+ if not 0 <= value <= 7:
raise ValueError(
- "value argument range expected is between 0 and 8")
+ "value argument range expected is between 0 and 7")
if ioclass in (IOPRIO_CLASS_NONE, None):
if value: