/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/transport/gio_transport.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:
31
31
import random
32
32
import stat
33
33
import time
34
 
try:
35
 
    from urllib.parse import (
36
 
        urlparse,
37
 
        urlunparse,
38
 
        )
39
 
except ImportError:
40
 
    from urlparse import (
41
 
        urlparse,
42
 
        urlunparse,
43
 
        )
 
34
from urllib.parse import (
 
35
    urlparse,
 
36
    urlunparse,
 
37
    )
44
38
 
45
39
from .. import (
46
40
    config,
50
44
    debug,
51
45
    ui,
52
46
    )
53
 
from ..sixish import (
54
 
    text_type,
55
 
    )
56
47
from ..trace import mutter
57
48
from . import (
58
49
    FileStream,
154
145
 
155
146
    def _relpath_to_url(self, relpath):
156
147
        full_url = urlutils.join(self.url, relpath)
157
 
        if isinstance(full_url, text_type):
 
148
        if isinstance(full_url, str):
158
149
            raise urlutils.InvalidURL(full_url)
159
150
        return full_url
160
151