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

0ebf27
From 2872033ee669c130d2c5b630915120f782f3f33c Mon Sep 17 00:00:00 2001
0ebf27
From: John Kacur <jkacur@redhat.com>
0ebf27
Date: Thu, 31 Jan 2019 16:15:34 +0100
0ebf27
Subject: [PATCH] tuna: fix undefined global name stderr
0ebf27
0ebf27
Fix undefined global name stderr. Should be sys.stderr
0ebf27
0ebf27
Signed-off-by: John Kacur <jkacur@redhat.com>
0ebf27
---
0ebf27
 tuna/tuna.py | 2 +-
0ebf27
 1 file changed, 1 insertion(+), 1 deletion(-)
0ebf27
0ebf27
diff --git a/tuna/tuna.py b/tuna/tuna.py
0ebf27
index 213bbf667caf..eae0408c2fe7 100755
0ebf27
--- a/tuna/tuna.py
0ebf27
+++ b/tuna/tuna.py
0ebf27
@@ -272,7 +272,7 @@ def move_threads_to_cpu(cpus, pid_list, set_affinity_warning = None,
0ebf27
 				# process died
0ebf27
 				continue
0ebf27
                         elif e[0] == errno.EINVAL: # unmovable thread)
0ebf27
-				print >> stderr, "thread %(pid)d cannot be moved as requested" %{'pid':pid}
0ebf27
+				print >> sys.stderr, "thread %(pid)d cannot be moved as requested" %{'pid':pid}
0ebf27
 				continue
0ebf27
 			raise e
0ebf27
 	return changed
0ebf27
-- 
0ebf27
2.20.1
0ebf27