]> granicus.if.org Git - python/commit
Issue #21775: shutil.copytree(): fix crash when copying to VFAT
authorBerker Peksag <berker.peksag@gmail.com>
Wed, 10 Dec 2014 00:50:32 +0000 (02:50 +0200)
committerBerker Peksag <berker.peksag@gmail.com>
Wed, 10 Dec 2014 00:50:32 +0000 (02:50 +0200)
commit884afd92f5a194e326df2be8279d4ab160c7b0c9
treece04f35703ae8e49f7795ea92cfad63047126041
parent8b1cbd2b7cd8752462c68b17447446b54065691c
Issue #21775: shutil.copytree(): fix crash when copying to VFAT

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.
Lib/shutil.py
Lib/test/test_shutil.py
Misc/NEWS