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 ron_adam
Recipients benjamin.peterson, pitrou, ron_adam, skrah
Date 2010-08-04.19:33:05
SpamBayes Score 4.76637e-09
Marked as misclassified No
Message-id <1280950387.39.0.899351998881.issue9319@psf.upfronthosting.co.za>
In-reply-to
Content
This is by far the simplest fix for this.  See patch file.

This patch is what Stefan Krah suggested and I agree unless someone a lot more familiar with the import process can take a look at this and re-factor things so the filename is passed along with the file descriptor so the error can include it.  I tried and each change required other changes in order to get the correct failure and error messages.  I gave up when the tests for non existent file started failing with ']' on the first line.

I can't commit this, so could someone who can take a look at the patch and move this along.
History
Date User Action Args
2010-08-04 19:33:07ron_adamsetrecipients: + ron_adam, pitrou, benjamin.peterson, skrah
2010-08-04 19:33:07ron_adamsetmessageid: <1280950387.39.0.899351998881.issue9319@psf.upfronthosting.co.za>
2010-08-04 19:33:06ron_adamlinkissue9319 messages
2010-08-04 19:33:05ron_adamcreate