summaryrefslogtreecommitdiff
path: root/tools/warn.py
diff options
context:
space:
mode:
author Chih-Hung Hsieh <chh@google.com> 2021-04-26 17:09:36 -0700
committer Chih-Hung Hsieh <chh@google.com> 2021-04-26 17:09:36 -0700
commit7cc0e15e4a229f8753eed78b180d2bac28132ebd (patch)
tree275e94a62f11289fd83ea2c68709520cb99749a7 /tools/warn.py
parent5e5b52033ce56093b519d0c9caad391d1122a0f2 (diff)
Use python3
Test: warn.py build.log > warnings.html Change-Id: I781ea7bfe023ec5af829757c417bc70aba80af0d
Diffstat (limited to 'tools/warn.py')
-rwxr-xr-xtools/warn.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/warn.py b/tools/warn.py
index 22ac8728f9..5f796f528e 100755
--- a/tools/warn.py
+++ b/tools/warn.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/env python3
#
# Copyright (C) 2019 The Android Open Source Project
#
@@ -28,7 +28,7 @@ import sys
def main():
os.environ['PYTHONPATH'] = os.path.dirname(os.path.abspath(__file__))
- subprocess.check_call(['/usr/bin/python', '-m', 'warn.warn'] + sys.argv[1:])
+ subprocess.check_call(['/usr/bin/python3', '-m', 'warn.warn'] + sys.argv[1:])
if __name__ == '__main__':