mirror of
https://github.com/firebase/firebase-ios-sdk
synced 2026-11-11 22:55:59 +05:45
Python 3 compatibility fixes (#5285)
This commit is contained in:
5 files changed
+19
-12
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user