[Infra] Updates to enable Python3 PRESUBMIT
This patch includes various Python updates to enable PRESUBMIT.py to run on
Python3, as part of the ongoing effort to deprecate and remove Python2.
Bug: b/173766869
Change-Id: Id3df677c7c8482147b93f0dc9e1552c732bac2b7
Reviewed-on: https://chromium-review.googlesource.com/c/openscreen/+/2918305
Commit-Queue: Jordan Bayles <jophba@chromium.org>
Reviewed-by: mark a. foltz <mfoltz@chromium.org>
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index b4d7da3..f9b0887 100755
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -15,8 +15,11 @@
import licenses
from checkdeps import DepsChecker
-from cpp_checker import CppChecker
-from rules import Rule
+
+# Opt-in to using Python3 instead of Python2, as part of the ongoing Python2
+# deprecation. For more information, see
+# https://issuetracker.google.com/173766869.
+USE_PYTHON3 = True
# Rather than pass this to all of the checks, we override the global excluded
# list with this one.