This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gward
Recipients gward
Date 2014-06-15.21:44:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
Bad news: because reproducing this requires sudo (to mount an arbitrary filesystem), I'm not sure it's possible/desirable to add test code for it.

Good news: the fix is trivial, and it passes my manual test. Here's a patch:

--- a/Lib/
+++ b/Lib/
@@ -336,7 +336,7 @@
         copystat(src, dst)
     except OSError as why:
         # Copying file access times may fail on Windows
-        if why.winerror is None:
+        if getattr(why, 'winerror', None) is None:
             errors.append((src, dst, str(why)))
     if errors:
         raise Error(errors)

Running test suite now to make sure this doesn't break anything else...
Date User Action Args
2014-06-15 21:44:19gwardsetrecipients: + gward
2014-06-15 21:44:19gwardsetmessageid: <>
2014-06-15 21:44:19gwardlinkissue21775 messages
2014-06-15 21:44:19gwardcreate