summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/dir_util.py
diff options
context:
space:
mode:
authorTarek Ziadé <ziade.tarek@gmail.com>2009-05-17 11:14:15 (GMT)
committerTarek Ziadé <ziade.tarek@gmail.com>2009-05-17 11:14:15 (GMT)
commitc81d84ba81650c7070587467c1bf5eaba0cd1a96 (patch)
tree04c9126794c9e38e2655369ebf125f35d0731335 /Lib/distutils/dir_util.py
parentd2dd51dae9925f23f8d3353b8e5131955b01fcd3 (diff)
downloadcpython-c81d84ba81650c7070587467c1bf5eaba0cd1a96.zip
cpython-c81d84ba81650c7070587467c1bf5eaba0cd1a96.tar.gz
cpython-c81d84ba81650c7070587467c1bf5eaba0cd1a96.tar.bz2
Merged revisions 72727 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r72727 | tarek.ziade | 2009-05-17 13:11:57 +0200 (Sun, 17 May 2009) | 1 line removed sys.platform == 'mac' usage in distutils.dir_util ........
Diffstat (limited to 'Lib/distutils/dir_util.py')
-rw-r--r--Lib/distutils/dir_util.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/Lib/distutils/dir_util.py b/Lib/distutils/dir_util.py
index ed54cce..82608d2 100644
--- a/Lib/distutils/dir_util.py
+++ b/Lib/distutils/dir_util.py
@@ -208,14 +208,11 @@ def remove_tree (directory, verbose=1, dry_run=0):
exc, "error removing %s: " % directory))
-def ensure_relative (path):
+def ensure_relative(path):
"""Take the full path 'path', and make it a relative path so
it can be the second argument to os.path.join().
"""
drive, path = os.path.splitdrive(path)
- if sys.platform == 'mac':
- return os.sep + path
- else:
- if path[0:1] == os.sep:
- path = drive + path[1:]
- return path
+ if path[0:1] == os.sep:
+ path = drive + path[1:]
+ return path