~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Vincent Ladeuil
  • Date: 2007-11-04 15:29:17 UTC
  • mfrom: (2961 +trunk)
  • mto: (2961.1.1 trunk)
  • mto: This revision was merged to the branch mainline in revision 2962.
  • Revision ID: v.ladeuil+lp@free.fr-20071104152917-nrsumxpk3dikso2c
Merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
    urlutils,
24
24
    )
25
25
from bzrlib.trace import mutter
26
 
from bzrlib.transport import register_urlparse_netloc_protocol
27
26
from bzrlib.transport.http import HttpTransportBase
28
27
# TODO: handle_response should be integrated into the _urllib2_wrappers
29
28
from bzrlib.transport.http.response import handle_response
33
32
    )
34
33
 
35
34
 
36
 
register_urlparse_netloc_protocol('http+urllib')
37
 
 
38
 
 
39
35
class HttpTransport_urllib(HttpTransportBase):
40
36
    """Python urllib transport for http and https."""
41
37
 
113
109
                and code in (301, 302, 303, 307):
114
110
            raise errors.RedirectRequested(request.get_full_url(),
115
111
                                           request.redirected_to,
116
 
                                           is_permament=(code == 301),
 
112
                                           is_permanent=(code == 301),
117
113
                                           qual_proto=self._scheme)
118
114
 
119
115
        if request.redirected_to is not None: