Blame SOURCES/tuna-fix-undefined-global-name-stderr.patch

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