summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTarek Ziadé <ziade.tarek@gmail.com>2010-04-19 21:13:03 (GMT)
committerTarek Ziadé <ziade.tarek@gmail.com>2010-04-19 21:13:03 (GMT)
commitf1c28b75e0a8577811649f427808d4cf2653cfcf (patch)
tree7aa8893e8a0083fed21580d2cc9a3054597918f2
parent7c587bf53d67ef0e279e471ac6d52d5087f4b3e8 (diff)
downloadcpython-f1c28b75e0a8577811649f427808d4cf2653cfcf.zip
cpython-f1c28b75e0a8577811649f427808d4cf2653cfcf.tar.gz
cpython-f1c28b75e0a8577811649f427808d4cf2653cfcf.tar.bz2
few pep8 fixes
-rw-r--r--Lib/shutil.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/Lib/shutil.py b/Lib/shutil.py
index 0dfc7c7..a94c5e1 100644
--- a/Lib/shutil.py
+++ b/Lib/shutil.py
@@ -53,7 +53,7 @@ def copyfileobj(fsrc, fdst, length=16*1024):
def _samefile(src, dst):
# Macintosh, Unix.
- if hasattr(os.path,'samefile'):
+ if hasattr(os.path, 'samefile'):
try:
return os.path.samefile(src, dst)
except OSError:
@@ -66,7 +66,7 @@ def _samefile(src, dst):
def copyfile(src, dst):
"""Copy data from src to dst"""
if _samefile(src, dst):
- raise Error, "`%s` and `%s` are the same file" % (src, dst)
+ raise Error("`%s` and `%s` are the same file" % (src, dst))
fsrc = None
fdst = None
@@ -109,7 +109,8 @@ def copystat(src, dst):
try:
os.chflags(dst, st.st_flags)
except OSError, why:
- if not hasattr(errno, 'EOPNOTSUPP') or why.errno != errno.EOPNOTSUPP:
+ if (not hasattr(errno, 'EOPNOTSUPP') or
+ why.errno != errno.EOPNOTSUPP):
raise
def copy(src, dst):