~lifeless/ubuntu/lucid/bzr/2.1.2-sru

« back to all changes in this revision

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

  • Committer: Bazaar Package Importer
  • Author(s): Jelmer Vernooij
  • Date: 2010-02-17 17:47:40 UTC
  • mfrom: (1.5.2 upstream)
  • mto: This revision was merged to the branch mainline in revision 13.
  • Revision ID: james.westby@ubuntu.com-20100217174740-p1x5dd5uwvxtg9y6
Tags: upstream-2.1.0
ImportĀ upstreamĀ versionĀ 2.1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
87
87
            self._update_credentials((request.auth, request.proxy_auth))
88
88
 
89
89
        code = response.code
90
 
        if request.follow_redirections is False \
91
 
                and code in (301, 302, 303, 307):
 
90
        if (request.follow_redirections is False
 
91
            and code in (301, 302, 303, 307)):
92
92
            raise errors.RedirectRequested(request.get_full_url(),
93
93
                                           request.redirected_to,
94
94
                                           is_permanent=(code == 301))