Update octal literals in bazel_build.py.
'0o' is the preferred syntax now, and the only one in Python 3.
See https://www.python.org/dev/peps/pep-3127/
PiperOrigin-RevId: 187341345
diff --git a/src/TulsiGenerator/Scripts/bazel_build.py b/src/TulsiGenerator/Scripts/bazel_build.py
index 6066805..b4f0ca3 100755
--- a/src/TulsiGenerator/Scripts/bazel_build.py
+++ b/src/TulsiGenerator/Scripts/bazel_build.py
@@ -1143,7 +1143,7 @@
if len(filename) < len(expected_bundle_subpath):
continue
- attributes = (item.external_attr >> 16) & 0777
+ attributes = (item.external_attr >> 16) & 0o777
self._PrintVerbose('Extracting %s (%o)' % (filename, attributes),
level=1)
@@ -1688,7 +1688,7 @@
binaries = [os.path.join(dwarf_subpath, b)
for b in os.listdir(dwarf_subpath)]
for binary_path in binaries:
- os.chmod(binary_path, 0755)
+ os.chmod(binary_path, 0o755)
args = [self.post_processor_binary, '-d']
if self.verbose > 1: