[issue4038] py3k error in distutils file_copy exception handlers

2008-10-05 Thread Mark Hammond
Mark Hammond <[EMAIL PROTECTED]> added the comment: r66806 on the py3k branch. -- assignee: -> mhammond resolution: accepted -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___

[issue4038] py3k error in distutils file_copy exception handlers

2008-10-04 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: Looks fine to me, please apply. -- keywords: -needs review nosy: +loewis resolution: -> accepted ___ Python tracker <[EMAIL PROTECTED]> ___

[issue4038] py3k error in distutils file_copy exception handlers

2008-10-03 Thread Mark Hammond
New submission from Mark Hammond <[EMAIL PROTECTED]>: All the exception handlers i dustutils.file_utils._copy_file_contents() are of the form: |except os.error as e: |(errno, errstr) = e This fails to unpack the exception in py3k. I'm attaching a patch that uses exception attributes rather