From 6fcd956e57f46709fd52e5968482a5db9dbdce73 Mon Sep 17 00:00:00 2001 From: Hall Liu Date: Mon, 19 Apr 2021 15:25:30 -0700 Subject: [PATCH] Fix py3 error in aosp checker Test: repo upload Change-Id: Ib871ad60c14aa5ce811c94f87e1e38823c6d9615 --- scripts/aosp_tag_preupload.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/aosp_tag_preupload.py b/scripts/aosp_tag_preupload.py index 77a971448..17f50580b 100755 --- a/scripts/aosp_tag_preupload.py +++ b/scripts/aosp_tag_preupload.py @@ -49,7 +49,7 @@ def main(): def _is_in_aosp(): branch_info = subprocess.check_output(["git", "branch", "-vv"]) - return re.search(AOSP_BRANCH_REGEX, branch_info) is not None + return re.search(AOSP_BRANCH_REGEX, str(branch_info)) is not None def _check_aosp_message(aosp_line): if re.search(AOSP_COMMIT_LINK_REGEX, aosp_line):