New submission from bpoaugust: At present both _mboxMMDF#get_message and get_bytes read the file directly.
However the code in get_bytes duplicates some of the code in get_message. get_message should be recoded to use get_bytes. It would then be possible to override get_bytes (which is also used by get_string) in order to transform the input stream e.g. to unmangle '>From ' lines. But in any case it makes sense to reuse the code - DRY ---------- components: email messages: 282863 nosy: barry, bpoaugust, r.david.murray priority: normal severity: normal status: open title: _mboxMMDF#get_message should delegate to get_bytes type: enhancement _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28934> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com