Message274856
In Lib/encodings/__init__.py, search_function() looks up an encoding by name. It loads the encoding by importing the corresponding module in the encodings package. If there's an ImportError while importing that module then the encoding gets silently ignored. I noticed this while working on issue #16384.
While I don't have any direct interest in the matter, I expect that it would be more useful to users if we issued a warning or some other printed message when an encoding is ignored. |
|
Date |
User |
Action |
Args |
2016-09-07 18:17:08 | eric.snow | set | recipients:
+ eric.snow |
2016-09-07 18:17:08 | eric.snow | set | messageid: <1473272228.69.0.973027040329.issue28005@psf.upfronthosting.co.za> |
2016-09-07 18:17:08 | eric.snow | link | issue28005 messages |
2016-09-07 18:17:08 | eric.snow | create | |
|