]> granicus.if.org Git - python/commitdiff
Issue #21775: shutil.copytree(): fix crash when copying to VFAT
authorBerker Peksag <berker.peksag@gmail.com>
Wed, 10 Dec 2014 00:51:36 +0000 (02:51 +0200)
committerBerker Peksag <berker.peksag@gmail.com>
Wed, 10 Dec 2014 00:51:36 +0000 (02:51 +0200)
An exception handler assumed that that OSError objects always have a
'winerror' attribute. That is not the case, so the exception handler
itself raised AttributeError when run on Linux (and, presumably, any
other non-Windows OS).

Patch by Greg Ward.

1  2 
Lib/shutil.py
Lib/test/test_shutil.py
Misc/NEWS

diff --cc Lib/shutil.py
Simple merge
Simple merge
diff --cc Misc/NEWS
Simple merge