Guido van Rossum added the comment:
> 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?
__________________________________
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1272>
__________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com