29 lines
1.1 KiB
Diff
29 lines
1.1 KiB
Diff
|
From 38021aa69c811478ddf6e091353b704adb80985a Mon Sep 17 00:00:00 2001
|
||
|
From: John Kacur <jkacur@redhat.com>
|
||
|
Date: Fri, 1 Feb 2019 13:57:52 +0100
|
||
|
Subject: [PATCH] tuna: fix undefined global name stderr
|
||
|
|
||
|
Fix undefined global name stderr. Should be sys.stderr
|
||
|
|
||
|
Signed-off-by: John Kacur <jkacur@redhat.com>
|
||
|
---
|
||
|
tuna/tuna.py | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/tuna/tuna.py b/tuna/tuna.py
|
||
|
index 4b1a77bcfa9f..d1d9bad661c7 100755
|
||
|
--- a/tuna/tuna.py
|
||
|
+++ b/tuna/tuna.py
|
||
|
@@ -255,7 +255,7 @@ def move_threads_to_cpu(cpus, pid_list, set_affinity_warning = None,
|
||
|
# process died
|
||
|
continue
|
||
|
elif e.args[0] == errno.EINVAL: # unmovable thread)
|
||
|
- print("thread %(pid)d cannot be moved as requested" %{'pid':pid}, file=stderr)
|
||
|
+ print("thread %(pid)d cannot be moved as requested" %{'pid':pid}, file=sys.stderr)
|
||
|
continue
|
||
|
raise e
|
||
|
return changed
|
||
|
--
|
||
|
2.20.1
|
||
|
|