~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/urlutils.py

  • Committer: Vincent Ladeuil
  • Date: 2011-09-27 11:48:50 UTC
  • mto: This revision was merged to the branch mainline in revision 6173.
  • Revision ID: v.ladeuil+lp@free.fr-20110927114850-338r2mns0138klv0
Global options respect their hidden attribute

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
from bzrlib.lazy_import import lazy_import
24
24
lazy_import(globals(), """
25
 
from posixpath import split as _posix_split
 
25
from posixpath import split as _posix_split, normpath as _posix_normpath
26
26
import urllib
27
27
import urlparse
28
28
 
201
201
    """
202
202
    # importing directly from posixpath allows us to test this
203
203
    # on non-posix platforms
204
 
    return 'file://' + escape(osutils._posix_abspath(path))
 
204
    return 'file://' + escape(_posix_normpath(
 
205
        osutils._posix_abspath(path)))
205
206
 
206
207
 
207
208
def _win32_local_path_from_url(url):