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 akira
Recipients akira, berker.peksag, charpov, gregory.p.smith, ronaldoussoren, travis.thieman, tshepang
Date 2014-11-17.21:28:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1416259684.39.0.29212294661.issue22536@psf.upfronthosting.co.za>
In-reply-to
Content
If the_oserror.filename is not None then str(the_oserror) appends the
filename twice:

  [Errno 2] No such file or directory: 'nonexistent': 'nonexistent'

You could remove `err_msg += ':' ...` statements to avoid the
repeatition. It may break the code that uses strerror attribute. But
exception error messages are explicitly excluded from backward
compatibility considirations therefore it might be ok to break it
here. I can't find the reference so it should probably be resolved as a
new issue (independent from providing the filename attribute value).
History
Date User Action Args
2014-11-17 21:28:04akirasetrecipients: + akira, gregory.p.smith, ronaldoussoren, tshepang, berker.peksag, charpov, travis.thieman
2014-11-17 21:28:04akirasetmessageid: <1416259684.39.0.29212294661.issue22536@psf.upfronthosting.co.za>
2014-11-17 21:28:04akiralinkissue22536 messages
2014-11-17 21:28:04akiracreate