~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/urlutils.py

  • Committer: Alexander Belchenko
  • Date: 2007-02-14 10:11:12 UTC
  • mto: This revision was merged to the branch mainline in revision 2289.
  • Revision ID: bialix@ukr.net-20070214101112-bhyewz9ye89za73e
Don't do normpath after abspath, because this function is called inside abspath

Show diffs side-by-side

added added

removed removed

Lines of Context:
212
212
    #       which actually strips trailing space characters.
213
213
    #       The worst part is that under linux ntpath.abspath has different
214
214
    #       semantics, since 'nt' is not an available module.
215
 
    win32_path = osutils._nt_normpath(
216
 
        osutils._win32_abspath(path)).replace('\\', '/')
 
215
    win32_path = osutils._win32_abspath(path)
217
216
    # check for UNC path \\HOST\path
218
217
    if win32_path.startswith('//'):
219
218
        return 'file:' + escape(win32_path)