/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/urlutils.py

  • Committer: Jelmer Vernooij
  • Date: 2018-08-08 02:14:32 UTC
  • mfrom: (7063 work)
  • mto: This revision was merged to the branch mainline in revision 7065.
  • Revision ID: jelmer@jelmer.uk-20180808021432-nomib3je4cu2xqkm
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
422
422
        if path_chars[i] not in _url_safe_characters:
423
423
            chars = path_chars[i].encode('utf-8')
424
424
            path_chars[i] = ''.join(
425
 
                ['%%%02X' % ord(c) for c in path_chars[i].encode('utf-8')])
 
425
                ['%%%02X' % c for c in bytearray(path_chars[i].encode('utf-8'))])
426
426
    path = ''.join(path_chars)
427
427
    path = _url_hex_escapes_re.sub(_unescape_safe_chars, path)
428
428
    return str(prefix + path)