summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/file_util.py
diff options
context:
space:
mode:
authorÉric Araujo <merwok@netwok.org>2010-11-06 06:00:54 (GMT)
committerÉric Araujo <merwok@netwok.org>2010-11-06 06:00:54 (GMT)
commit45ee43be43dce8b81d338ed577a65f21da657b7d (patch)
tree57c21bc5face310b558b590906e1929035c3fe14 /Lib/distutils/file_util.py
parent2642ad07ee616c3374feee47354d1eba735b07eb (diff)
downloadcpython-45ee43be43dce8b81d338ed577a65f21da657b7d.zip
cpython-45ee43be43dce8b81d338ed577a65f21da657b7d.tar.gz
cpython-45ee43be43dce8b81d338ed577a65f21da657b7d.tar.bz2
Remove traces of Mac OS 9 support, again (#9508).
This was done in r80805 (#7908) and erroneously brought back by the distutils revert. This commit removes more code than the original, which was uncomplete. There is no NEWS entry, like in r80805.
Diffstat (limited to 'Lib/distutils/file_util.py')
-rw-r--r--Lib/distutils/file_util.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/Lib/distutils/file_util.py b/Lib/distutils/file_util.py
index c36e712..e1eb932 100644
--- a/Lib/distutils/file_util.py
+++ b/Lib/distutils/file_util.py
@@ -130,15 +130,6 @@ 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 as exc:
- raise DistutilsFileError(
- "could not copy '%s' to '%s': %s" % (src, dst, exc.args[-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':