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

  • Committer: Aaron Bentley
  • Date: 2006-12-07 16:18:25 UTC
  • mto: This revision was merged to the branch mainline in revision 2170.
  • Revision ID: abentley@panoramicfeedback.com-20061207161825-bg1cl9ji1mwpluqo
Update safe character list

Show diffs side-by-side

added added

removed removed

Lines of Context:
446
446
_hex_display_map.update((hex,'%'+hex) for hex in _no_decode_hex)
447
447
 
448
448
# These characters should not be escaped
449
 
_url_safe_characters = set('abcdefghijklmnopqrstuvwxyz'
450
 
                        'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
451
 
                        '0123456789' '_.-/'
452
 
                        ';?:@&=+$,%#~')
453
 
 
 
449
_url_safe_characters = set(
 
450
   "abcdefghijklmnopqrstuvwxyz" # Lowercase alpha
 
451
   "ABCDEFGHIJKLMNOPQRSTUVWXYZ" # Uppercase alpha
 
452
   "0123456789" # Numbers
 
453
   "_.-!~*'()"  # Unreserved characters
 
454
   "/;?:@&=+$," # Reserved characters
 
455
   "%#"         # Extra reserved characters
 
456
)
454
457
 
455
458
def unescape_for_display(url, encoding):
456
459
    """Decode what you can for a URL, so that we get a nice looking path.