~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/http/__init__.py

  • Committer: Jelmer Vernooij
  • Date: 2011-08-19 22:34:02 UTC
  • mto: This revision was merged to the branch mainline in revision 6089.
  • Revision ID: jelmer@samba.org-20110819223402-wjywqb0fa1xxx522
Use get_transport_from_{url,path} in more places.

Show diffs side-by-side

added added

removed removed

Lines of Context:
566
566
                                            self._parsed_url.password,
567
567
                                            parsed_url.host, parsed_url.port,
568
568
                                            base_path)
569
 
                new_transport = transport.get_transport(new_url)
 
569
                new_transport = transport.get_transport_from_url(
 
570
                    new_url)
570
571
        else:
571
572
            # Redirected to a different protocol
572
573
            new_url = self._unsplit_url(parsed_url.scheme,
573
574
                                        parsed_url.user, parsed_url.password,
574
575
                                        parsed_url.host, parsed_url.port,
575
576
                                        base_path)
576
 
            new_transport = transport.get_transport(new_url)
 
577
            new_transport = transport.get_transport_from_url(
 
578
                new_url)
577
579
        return new_transport
578
580
 
579
581