From c807245d8b342c05cfd46d1e74af2f5542c59db8 Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Fri, 15 Jun 2018 13:54:19 +1000 Subject: [PATCH] tools/sorted_modules.py : make python3 safe Trivial updates to print statements only Change-Id: I633c21a226364d045fc1650cb41b79b83988d7db --- tools/sorted_modules_env.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/sorted_modules_env.py b/tools/sorted_modules_env.py index f3b9f583ad..6f02f2c6ac 100644 --- a/tools/sorted_modules_env.py +++ b/tools/sorted_modules_env.py @@ -8,9 +8,9 @@ def assert_sorted(lines): if lines == sorted(lines): return True else: - print "Modules not sorted:" + print("Modules not sorted:") for line in difflib.context_diff(lines, sorted(lines)): - print line + print(line) sys.exit(1)