summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author David Su <dysu@google.com> 2021-04-14 18:58:28 -0700
committer David Su <dysu@google.com> 2021-04-14 19:00:42 -0700
commitc366516aa008298d48093854e2a85ee2df25bb22 (patch)
treebf1ddfb2568760b5a55ccab80fbf56d810a688bd
parent9891e25fccbe8853c5c5a71f2b0b05ea433cee0d (diff)
metrics_pdd_hook: make compatible with python3
Bug: 140895523 Test: repo upload . Change-Id: Ia7a428205de8c79ea4ef1090677519d7b3d4b376
-rwxr-xr-xmetrics_pdd_hook.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/metrics_pdd_hook.py b/metrics_pdd_hook.py
index fa858553a8..65d467cc29 100755
--- a/metrics_pdd_hook.py
+++ b/metrics_pdd_hook.py
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
#
# Copyright 2020, The Android Open Source Project
@@ -28,8 +28,8 @@ def is_in_aosp():
for branch in branches:
# current branch starts with a '*'
- if branch.startswith('*'):
- return '[aosp/' in branch
+ if branch.startswith(b'*'):
+ return b'[aosp/' in branch
# otherwise assume in AOSP
return True