summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/file_util.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-12-06 20:51:35 (GMT)
committerFred Drake <fdrake@acm.org>2001-12-06 20:51:35 (GMT)
commitb94b849d65af71b4b432a74fdaef8ccd88209cc0 (patch)
treed32dd5d053192834153d90685ca56361f5ecc62a /Lib/distutils/file_util.py
parentbcd8975740da47e7d1c8a5d2839ad4bf214fe34b (diff)
downloadcpython-b94b849d65af71b4b432a74fdaef8ccd88209cc0.zip
cpython-b94b849d65af71b4b432a74fdaef8ccd88209cc0.tar.gz
cpython-b94b849d65af71b4b432a74fdaef8ccd88209cc0.tar.bz2
Whitespace normalization.
Diffstat (limited to 'Lib/distutils/file_util.py')
-rw-r--r--Lib/distutils/file_util.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/Lib/distutils/file_util.py b/Lib/distutils/file_util.py
index 991d835..526e4cf 100644
--- a/Lib/distutils/file_util.py
+++ b/Lib/distutils/file_util.py
@@ -35,20 +35,20 @@ def _copy_file_contents (src, dst, buffer_size=16*1024):
except os.error, (errno, errstr):
raise DistutilsFileError, \
"could not open '%s': %s" % (src, errstr)
-
+
try:
fdst = open(dst, 'wb')
except os.error, (errno, errstr):
raise DistutilsFileError, \
"could not create '%s': %s" % (dst, errstr)
-
+
while 1:
try:
buf = fsrc.read(buffer_size)
except os.error, (errno, errstr):
raise DistutilsFileError, \
"could not read from '%s': %s" % (src, errstr)
-
+
if not buf:
break
@@ -57,7 +57,7 @@ def _copy_file_contents (src, dst, buffer_size=16*1024):
except os.error, (errno, errstr):
raise DistutilsFileError, \
"could not write to '%s': %s" % (dst, errstr)
-
+
finally:
if fdst:
fdst.close()
@@ -134,7 +134,7 @@ def copy_file (src, dst,
print "%s %s -> %s" % (action, src, dir)
else:
print "%s %s -> %s" % (action, src, dst)
-
+
if dry_run:
return (dst, 1)
@@ -146,7 +146,7 @@ def copy_file (src, dst,
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':
@@ -189,7 +189,7 @@ def move_file (src, dst,
"""
from os.path import exists, isfile, isdir, basename, dirname
import errno
-
+
if verbose:
print "moving %s -> %s" % (src, dst)
@@ -232,7 +232,7 @@ def move_file (src, dst,
except os.error:
pass
raise DistutilsFileError, \
- ("couldn't move '%s' to '%s' by copy/delete: " +
+ ("couldn't move '%s' to '%s' by copy/delete: " +
"delete '%s' failed: %s") % \
(src, dst, src, msg)