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 gvanrossum
Recipients alexandre.vassalotti, christian.heimes, gvanrossum
Date 2007-10-15.00:27:17
SpamBayes Score 0.0027379773
Marked as misclassified No
Message-id <ca471dc20710141727s5efa80aexe42d8168141da19d@mail.gmail.com>
In-reply-to <1192377622.87.0.989770474728.issue1272@psf.upfronthosting.co.za>
Content
> The problem is the imp module, which modulefinder uses, does not
> detect the encoding of the files from the mode-line. This causes
> TextIOWrapper to crash when it tries to read modules using an encoding
> other than ASCII or UTF-8. Here an example:
>
>   >>> import imp
>   >>> imp.find_module('heapq')[0].read()
>   Traceback (most recent call last):
>   ...
>   UnicodeDecodeError: 'utf8' codec can't decode bytes in position
>   1428-1430: invalid data

I can't reproduce this. Can you open a separate issue?
History
Date User Action Args
2007-10-15 00:27:18gvanrossumsetspambayes_score: 0.00273798 -> 0.0027379773
recipients: + gvanrossum, christian.heimes, alexandre.vassalotti
2007-10-15 00:27:17gvanrossumlinkissue1272 messages
2007-10-15 00:27:17gvanrossumcreate