diff options
Diffstat (limited to 'metrics_pdd_hook.py')
-rwxr-xr-x | metrics_pdd_hook.py | 6 |
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 |