/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

Fix another 40 tests.

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)