/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/tests/http_utils.py

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-08-31 10:23:32 UTC
  • mfrom: (7078.10.1 httpy)
  • Revision ID: breezy.the.bot@gmail.com-20180831102332-oeccm4a2xv8ywrpr
Fix all but a few remaining HTTP tests on Python 3.

Merged from https://code.launchpad.net/~jelmer/brz/httpy/+merge/353543

Show diffs side-by-side

added added

removed removed

Lines of Context:
335
335
            scheme, raw_auth = auth_header.split(' ', 1)
336
336
            if scheme.lower() == tcs.auth_scheme:
337
337
                user, password = base64.b64decode(raw_auth).split(b':')
338
 
                return tcs.authorized(user, password)
 
338
                return tcs.authorized(user.decode('ascii'),
 
339
                                      password.decode('ascii'))
339
340
 
340
341
        return False
341
342