[New-bugs-announce] [issue22182] distutils.file_util.move_file unpacks wrongly an exception

Claudiu Popa report at bugs.python.org
Mon Aug 11 14:38:56 CEST 2014


New submission from Claudiu Popa:

Hi. When os.rename fails inside distutils.file_util.move_file, the exception is unpacked using ``(num, msg) = e``. While this was valid in Python 2, in Python 3 it should be ``e.args``. The attached patched fixes this.

----------
components: Distutils
files: distutils_unpacking_exception.patch
keywords: patch
messages: 225184
nosy: Claudiu.Popa, dstufft, eric.araujo
priority: normal
severity: normal
status: open
title: distutils.file_util.move_file unpacks wrongly an exception
type: behavior
versions: Python 3.5
Added file: http://bugs.python.org/file36345/distutils_unpacking_exception.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22182>
_______________________________________


More information about the New-bugs-announce mailing list