~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/urlutils.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-02-15 12:40:16 UTC
  • mfrom: (2279.4.4 win98.support)
  • Revision ID: pqm@pqm.ubuntu.com-20070215124016-39cb7bf4759aeede
(bialix) custom reimplementation of abspath in Python for Windows
 98 (#84278)

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)