Automatic code cleanup.
PiperOrigin-RevId: 199689258
diff --git a/src/TulsiGenerator/Scripts/BUILD b/src/TulsiGenerator/Scripts/BUILD
index a742638..1bd8da4 100644
--- a/src/TulsiGenerator/Scripts/BUILD
+++ b/src/TulsiGenerator/Scripts/BUILD
@@ -18,6 +18,8 @@
py_binary(
name = "bazel_build_events",
srcs = ["bazel_build_events.py"],
+ default_python_version = "PY3",
+ srcs_version = "PY2AND3",
)
py_test(
@@ -30,23 +32,31 @@
py_binary(
name = "symbol_cache_schema",
srcs = ["symbol_cache_schema.py"],
+ default_python_version = "PY3",
+ srcs_version = "PY2AND3",
)
py_binary(
name = "update_symbol_cache",
srcs = ["update_symbol_cache.py"],
+ default_python_version = "PY3",
+ srcs_version = "PY2AND3",
deps = [":symbol_cache_schema"],
)
py_binary(
name = "clean_symbol_cache",
srcs = ["clean_symbol_cache.py"],
+ default_python_version = "PY3",
+ srcs_version = "PY2AND3",
deps = [":symbol_cache_schema"],
)
py_binary(
name = "install_genfiles",
srcs = ["install_genfiles.py"],
+ default_python_version = "PY3",
+ srcs_version = "PY2AND3",
)
py_test(
@@ -59,6 +69,8 @@
py_binary(
name = "bootstrap_lldbinit",
srcs = ["bootstrap_lldbinit.py"],
+ default_python_version = "PY3",
+ srcs_version = "PY2AND3",
)
test_suite(
diff --git a/src/TulsiGenerator/Scripts/install_genfiles.py b/src/TulsiGenerator/Scripts/install_genfiles.py
index 78ff458..be66454 100755
--- a/src/TulsiGenerator/Scripts/install_genfiles.py
+++ b/src/TulsiGenerator/Scripts/install_genfiles.py
@@ -15,6 +15,7 @@
"""Symlinks files generated by Bazel into _tulsi-includes for indexing."""
+from __future__ import print_function
import json
import os
import shutil
@@ -54,8 +55,7 @@
output_data = json.load(open(file_path))
self.InstallForData(output_data)
except (ValueError, IOError) as e:
- print('Failed to load output data file "%s". %s'
- % (file_path, e))
+ print('Failed to load output data file "%s". %s' % (file_path, e))
def InstallForData(self, output_data):
"""Symlinks generated sources present in the output_data."""