[PATCH 02/14] backports: cmake: Fixes for python3

Hauke Mehrtens <[email protected]>
Newsgroups org.kernel.vger.backports
Message-ID <[email protected]>
Make ckmake work with python3.

Signed-off-by: Hauke Mehrtens <[email protected]>
---
 devel/ckmake | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/devel/ckmake b/devel/ckmake
index d16de3a7..9252df84 100755
--- a/devel/ckmake
+++ b/devel/ckmake
@@ -20,7 +20,7 @@ import subprocess
 import sys
 import signal
 
-from Queue import Queue
+from queue import Queue
 from threading import Thread, Lock
 from shutil import copytree, ignore_patterns, rmtree, copyfileobj
 from time import sleep
@@ -232,7 +232,6 @@ def cpu_info_build_jobs():
 
 def kill_curses():
     curses.endwin()
-    sys.stdout = os.fdopen(0, 'w', 0)
 
 
 def sig_handler(signal, frame):
@@ -643,10 +642,10 @@ if __name__ == "__main__":
             target_kranges.append(krange)
 
     if not os.path.exists(modules):
-        print "%s does not exist" % (modules)
+        print ("%s does not exist" % (modules))
         sys.exit(1)
     if not os.path.exists(my_cwd + '/Makefile'):
-        print "%s does not exist" % (my_cwd + '/Makefile')
+        print ("%s does not exist" % (my_cwd + '/Makefile'))
         sys.exit(1)
     if os.path.exists(ckmake_log):
         os.remove(ckmake_log)
-- 
2.30.2

--
To unsubscribe from this list: send the line "unsubscribe backports" in
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.