This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author martin.panter
Recipients barry, martin.panter, r.david.murray
Date 2016-07-27.01:07:11
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1469581633.21.0.276257861067.issue27630@psf.upfronthosting.co.za>
In-reply-to
Content
In the Generator.flatten() (Lib/email/generator.py), the code sets, among others, the instance attributes _EMPTY (correct spelling) and _encoded_EMTPY (misspelling). Further down in that class, _encoded_EMPTY (correct spelling) is set as a class attribute, and this correctly-spelt version appears to be used in the _handle_message_delivery_status() method. The BytesGenerator class inherits Generator and overrides the correctly-spelt _encoded_EMPTY class attribute.

It seems that both _EMPTY and the misspelt _encoded_EMTPY instance attributes are not used. Perhaps they should be removed. Or perhaps they are not doing the job they were intended for and there is a real bug.
History
Date User Action Args
2016-07-27 01:07:13martin.pantersetrecipients: + martin.panter, barry, r.david.murray
2016-07-27 01:07:13martin.pantersetmessageid: <1469581633.21.0.276257861067.issue27630@psf.upfronthosting.co.za>
2016-07-27 01:07:13martin.panterlinkissue27630 messages
2016-07-27 01:07:11martin.pantercreate