updating checkInvalidSuppress to work in python3
Bug: 150646727
Test: repo upload
Change-Id: Ifb1ac5e3bd6887f1cb9fee637347a3ef69f2f2de
diff --git a/development/checkInvalidSuppress.py b/development/checkInvalidSuppress.py
index 5848064..bee61c6 100755
--- a/development/checkInvalidSuppress.py
+++ b/development/checkInvalidSuppress.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
#
# Copyright 2019, The Android Open Source Project
@@ -67,8 +67,8 @@
if not report:
sys.exit(0)
- print "Invalid, IDEA-specific warning suppression found. These cause warnings during compilation."
- print report
+ print("Invalid, IDEA-specific warning suppression found. These cause warnings during compilation.")
+ print(report)
sys.exit(1)
if __name__ == '__main__':