[issue28934] _mboxMMDF#get_message should delegate to get_bytes
bpoaugust
report at bugs.python.org
Sat Dec 10 12:35:36 EST 2016
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 <report at bugs.python.org>
<http://bugs.python.org/issue28934>
_______________________________________
More information about the Python-bugs-list
mailing list