~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/urlutils.py

  • Committer: John Arbash Meinel
  • Date: 2006-05-11 18:15:00 UTC
  • mto: This revision was merged to the branch mainline in revision 1752.
  • Revision ID: john@arbash-meinel.com-20060511181500-4d9e153e05cf2d1e
Updated normalize_url

Show diffs side-by-side

added added

removed removed

Lines of Context:
188
188
        #       shouldn't be allowed in URLs
189
189
        for c in url:
190
190
            if c not in _url_safe_characters:
191
 
                raise errors.InvalidURL(url, 'URLs can only contain specific safe characters')
 
191
                raise errors.InvalidURL(url, 'URLs can only contain specific'
 
192
                                            ' safe characters (not %r)' % c)
192
193
        return url
193
194
    # We have a unicode (hybrid) url
194
195
    scheme = m.group('scheme')