/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/propose/github.py

  • Committer: Jelmer Vernooij
  • Date: 2020-02-07 02:14:30 UTC
  • mto: This revision was merged to the branch mainline in revision 7492.
  • Revision ID: jelmer@jelmer.uk-20200207021430-m49iq3x4x8xlib6x
Drop python2 support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
from ...errors import InvalidHttpResponse, PermissionDenied
48
48
from ...git.urls import git_url_to_bzr_url
49
49
from ...i18n import gettext
50
 
from ...sixish import PY3
51
50
from ...trace import note
52
51
from ...transport import get_transport
53
52
from ...transport.http import default_user_agent
222
221
 
223
222
 
224
223
def github_url_to_bzr_url(url, branch_name):
225
 
    if not PY3:
226
 
        branch_name = branch_name.encode('utf-8')
227
224
    return git_url_to_bzr_url(url, branch_name)
228
225
 
229
226