diff options
author | Ronald Oussoren <ronaldoussoren@mac.com> | 2010-05-05 19:09:31 (GMT) |
---|---|---|
committer | Ronald Oussoren <ronaldoussoren@mac.com> | 2010-05-05 19:09:31 (GMT) |
commit | 9545a23c7ffb35417d451d24cc3b0339627965a7 (patch) | |
tree | 5e22fd30c1c6936970b4d87ca3e91f8428c74983 /Lib/distutils/file_util.py | |
parent | a8157183b89c08cf47c969185d40973ec21a81c5 (diff) | |
download | cpython-9545a23c7ffb35417d451d24cc3b0339627965a7.zip cpython-9545a23c7ffb35417d451d24cc3b0339627965a7.tar.gz cpython-9545a23c7ffb35417d451d24cc3b0339627965a7.tar.bz2 |
In a number of places code still revers
to "sys.platform == 'mac'" and that is
dead code because it refers to a platform
that is no longer supported (and hasn't been
supported for several releases).
Fixes issue #7908 for the trunk.
Diffstat (limited to 'Lib/distutils/file_util.py')
-rw-r--r-- | Lib/distutils/file_util.py | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/Lib/distutils/file_util.py b/Lib/distutils/file_util.py index d8e8fd5..b3d9d54 100644 --- a/Lib/distutils/file_util.py +++ b/Lib/distutils/file_util.py @@ -133,18 +133,9 @@ def copy_file(src, dst, preserve_mode=1, preserve_times=1, update=0, if dry_run: return (dst, 1) - # On Mac OS, use the native file copy routine - if os.name == 'mac': - import macostools - try: - macostools.copy(src, dst, 0, preserve_times) - except os.error, exc: - raise DistutilsFileError( - "could not copy '%s' to '%s': %s" % (src, dst, exc[-1])) - # If linking (hard or symbolic), use the appropriate system call # (Unix only, of course, but that's the caller's responsibility) - elif link == 'hard': + if link == 'hard': if not (os.path.exists(dst) and os.path.samefile(src, dst)): os.link(src, dst) elif link == 'sym': |