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)