/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: 2017-07-23 22:06:41 UTC
  • mfrom: (6738 trunk)
  • mto: This revision was merged to the branch mainline in revision 6739.
  • Revision ID: jelmer@jelmer.uk-20170723220641-69eczax9bmv8d6kk
Merge trunk, address review comments.

Show diffs side-by-side

added added

removed removed

Lines of Context:
129
129
        #so a hardcoded list it is then.
130
130
        gio_backends = ['dav', 'file', 'ftp', 'obex', 'sftp', 'ssh', 'smb']
131
131
        if scheme not in gio_backends:
132
 
            raise errors.InvalidURL(base,
 
132
            raise urlutils.InvalidURL(base,
133
133
                    extra="GIO support is only available for " + \
134
134
                    ', '.join(gio_backends))
135
135
 
145
145
    def _relpath_to_url(self, relpath):
146
146
        full_url = urlutils.join(self.url, relpath)
147
147
        if isinstance(full_url, unicode):
148
 
            raise errors.InvalidURL(full_url)
 
148
            raise urlutils.InvalidURL(full_url)
149
149
        return full_url
150
150
 
151
151
    def _get_GIO(self, relpath):