Make generate_cmake_lists.py runnable under Python 3
Change-Id: Ia68cfcd42d47337e7b99cb5617097e7d729e9a82
diff --git a/tools/generate_cmake_lists.py b/tools/generate_cmake_lists.py
index b19c292..3fda003 100755
--- a/tools/generate_cmake_lists.py
+++ b/tools/generate_cmake_lists.py
@@ -32,6 +32,7 @@
(Also, exclude projects that you don't bother about. This will make
the indexing faster).
"""
+from __future__ import print_function
import sys
import os
@@ -47,7 +48,7 @@
path_to_top = os.path.realpath(path_to_top)
if not os.path.exists(os.path.join(path_to_top, 'build/envsetup.sh')):
- print path_to_top
+ print(path_to_top)
raise AssertionError("geneate_cmake_lists.py must be located inside an android source tree")
return path_to_top