diff options
Diffstat (limited to 'git_config.py')
-rw-r--r-- | git_config.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/git_config.py b/git_config.py index ca1282a3..cdfeddd0 100644 --- a/git_config.py +++ b/git_config.py | |||
@@ -657,13 +657,14 @@ class Remote(object): | |||
657 | info = urllib.request.urlopen(info_url, context=context).read() | 657 | info = urllib.request.urlopen(info_url, context=context).read() |
658 | else: | 658 | else: |
659 | info = urllib.request.urlopen(info_url).read() | 659 | info = urllib.request.urlopen(info_url).read() |
660 | if info == 'NOT_AVAILABLE' or '<' in info: | 660 | if info == b'NOT_AVAILABLE' or b'<' in info: |
661 | # If `info` contains '<', we assume the server gave us some sort | 661 | # If `info` contains '<', we assume the server gave us some sort |
662 | # of HTML response back, like maybe a login page. | 662 | # of HTML response back, like maybe a login page. |
663 | # | 663 | # |
664 | # Assume HTTP if SSH is not enabled or ssh_info doesn't look right. | 664 | # Assume HTTP if SSH is not enabled or ssh_info doesn't look right. |
665 | self._review_url = http_url | 665 | self._review_url = http_url |
666 | else: | 666 | else: |
667 | info = info.decode('utf-8') | ||
667 | host, port = info.split() | 668 | host, port = info.split() |
668 | self._review_url = self._SshReviewUrl(userEmail, host, port) | 669 | self._review_url = self._SshReviewUrl(userEmail, host, port) |
669 | except urllib.error.HTTPError as e: | 670 | except urllib.error.HTTPError as e: |