Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
Open
Description
Documentation
The documentation for theemail.headerregistry
module say that theparse()
method of custom header classes must ensure thatkwds
contains the keysdecoded
anddefects
:
values for at least the keys ``decoded`` and ``defects``. ``decoded`` |
However, there is a third key required,parse_tree
, as mentioned in the source code:
cpython/Lib/email/headerregistry.py
Line 165 in8edfa0b
the dictionary must contain two additional keys: parse_tree, set to the |
The documentation should mention this required key as well. Ideally, it would also explain what its content should be.