~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Robert Collins
  • Date: 2007-06-28 02:43:50 UTC
  • mfrom: (2553 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2558.
  • Revision ID: robertc@robertcollins.net-20070628024350-z8bdm0y6yz2uyf4o
Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
916
916
class BasicAuthHandler(AbstractAuthHandler):
917
917
    """A custom basic authentication handler."""
918
918
 
 
919
    handler_order = 500
 
920
 
919
921
    auth_regexp = re.compile('realm="([^"]*)"', re.I)
920
922
 
921
923
    def build_auth_header(self, auth, request):
972
974
class DigestAuthHandler(AbstractAuthHandler):
973
975
    """A custom digest authentication handler."""
974
976
 
 
977
    # Before basic as digest is a bit more secure
 
978
    handler_order = 490
 
979
 
975
980
    def auth_params_reusable(self, auth):
976
981
        # If the auth scheme is known, it means a previous
977
982
        # authentication was successful, all information is