/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/plugins/github/hoster.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2020-06-12 01:45:56 UTC
  • mfrom: (7513.1.2 pypy3)
  • Revision ID: breezy.the.bot@gmail.com-20200612014556-tsc8assk3d0luziu
Avoid deprecated behaviour in ElementTree.

Merged from https://code.launchpad.net/~jelmer/brz/pypy3/+merge/385611

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""Support for GitHub."""
18
18
 
19
 
from __future__ import absolute_import
20
 
 
21
19
import json
22
20
import os
23
21
 
47
45
from ...errors import InvalidHttpResponse, PermissionDenied
48
46
from ...git.urls import git_url_to_bzr_url
49
47
from ...i18n import gettext
50
 
from ...sixish import PY3
51
48
from ...trace import note
52
49
from ...transport import get_transport
53
50
from ...transport.http import default_user_agent
222
219
 
223
220
 
224
221
def github_url_to_bzr_url(url, branch_name):
225
 
    if not PY3:
226
 
        branch_name = branch_name.encode('utf-8')
227
222
    return git_url_to_bzr_url(url, branch_name)
228
223
 
229
224