[Python-checkins] r80218 - python/trunk/Lib/shutil.py

tarek.ziade python-checkins at python.org
Mon Apr 19 23:13:03 CEST 2010


Author: tarek.ziade
Date: Mon Apr 19 23:13:03 2010
New Revision: 80218

Log:
few pep8 fixes

Modified:
   python/trunk/Lib/shutil.py

Modified: python/trunk/Lib/shutil.py
==============================================================================
--- python/trunk/Lib/shutil.py	(original)
+++ python/trunk/Lib/shutil.py	Mon Apr 19 23:13:03 2010
@@ -53,7 +53,7 @@
 
 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 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 @@
         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):


More information about the Python-checkins mailing list