Index: Lib/distutils/util.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/distutils/util.py,v retrieving revision 1.68 diff -C5 -r1.68 util.py *** Lib/distutils/util.py 4 Jun 2002 20:14:42 -0000 1.68 --- Lib/distutils/util.py 27 Jun 2002 02:00:02 -0000 *************** *** 82,94 **** ValueError on non-Unix-ish systems if 'pathname' either starts or ends with a slash. """ if os.sep == '/': return pathname ! if pathname and pathname[0] == '/': raise ValueError, "path '%s' cannot be absolute" % pathname ! if pathname and pathname[-1] == '/': raise ValueError, "path '%s' cannot end with '/'" % pathname paths = string.split(pathname, '/') while '.' in paths: paths.remove('.') --- 82,96 ---- ValueError on non-Unix-ish systems if 'pathname' either starts or ends with a slash. """ if os.sep == '/': return pathname ! if not pathname: ! return pathname ! if pathname[0] == '/': raise ValueError, "path '%s' cannot be absolute" % pathname ! if pathname[-1] == '/': raise ValueError, "path '%s' cannot end with '/'" % pathname paths = string.split(pathname, '/') while '.' in paths: paths.remove('.')