~gz/bzr/noncpython

« back to all changes in this revision

Viewing changes to bzrlib/osutils.py

  • Committer: Martin
  • Date: 2009-11-14 16:53:12 UTC
  • Revision ID: gzlist@googlemail.com-20091114165312-pmglv2nbvdf7ocxu
Remove some workarounds for bugs that have been fixed upstream, and some extra cleanups

Show diffs side-by-side

added added

removed removed

Lines of Context:
288
288
 
289
289
def _win32_abspath(path):
290
290
    # Real _nt_abspath doesn't have a problem with a unicode cwd
291
 
    try:
292
 
        return _win32_fixdrive(_nt_abspath(unicode(path)).replace('\\', '/'))
293
 
    except ValueError, e:
294
 
        # GZ 2009-06-26: IronPython ntpath.abspath throws on invalid paths
295
 
        #                rather than let them through, which makes tests that
296
 
        #                try to use filenames like 'null:' have problems
297
 
        mutter("GZ: _win32_abspath %s: %s %r", e.__class__.__name__, e, path)
298
 
        raise
 
291
    return _win32_fixdrive(_nt_abspath(unicode(path)).replace('\\', '/'))
299
292
 
300
293
 
301
294
def _win98_abspath(path):