Python 3 compatibility fixes (#5285)

This commit is contained in:
Gil authored and GitHub committed 2020-04-03 16:13:55 -07:00
1 parent af7898c01e
commit ecfe3ee8de
5 files changed
+19 -12

No files matched your search

+4 -2
View File
@@ -1,6 +1,6 @@
#!/usr/bin/env python
# Copyright 2019 Google
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -22,6 +22,7 @@ import re
import subprocess
import string
import six
NO_HEADING = 'PRODUCT HAS NO HEADING'
@@ -78,7 +79,8 @@ def main():
def find_local_repo():
url = subprocess.check_output(['git', 'config', '--get', 'remote.origin.url'])
url = six.ensure_text(
subprocess.check_output(['git', 'config', '--get', 'remote.origin.url']))
# ssh or https style URL
m = re.match(r'^(?:git@github\.com:|https://github\.com/)(.*)\.git$', url)