[issue16384] import.c doesn't handle EOFError from PyMarshal_Read*

Eric Snow report at bugs.python.org
Wed Sep 7 14:25:09 EDT 2016


Eric Snow added the comment:

Here's an updated patch.  Per a suggestion from Brett, I've chained the original EOFError with an ImportError.  The consequence is that the problematic encoding is skipped (silently) rather than causing the interpreter to abort.

FYI, I've opened issue #28005 to address how we silently skip encodings that fail to import.

----------
Added file: http://bugs.python.org/file44446/issue16384.diff

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16384>
_______________________________________


More information about the Python-bugs-list mailing list