keys are case-insenstive

This commit is contained in:
Daniel Holth 2012-11-14 22:12:04 -05:00
parent 895121b37d
commit 8f7a391d24
1 changed files with 2 additions and 2 deletions

View File

@ -35,8 +35,8 @@ Metadata Files
The syntax defined in this PEP is for use with Python distribution The syntax defined in this PEP is for use with Python distribution
metadata files. The file format is a simple UTF-8 encoded Key: value metadata files. The file format is a simple UTF-8 encoded Key: value
format with no maximum line length, followed by a blank line and an format with no maximum line length, followed by a blank line and an
arbitrary payload. It is parseable by the ``email`` module with an arbitrary payload. The keys are case-insensitive. It is parseable by
appropriate ``email.policy.Policy()``. the ``email`` module with an appropriate ``email.policy.Policy()``.
When ``metadata`` is a Unicode string, When ``metadata`` is a Unicode string,
```email.parser.Parser().parsestr(metadata)`` is a serviceable parser. ```email.parser.Parser().parsestr(metadata)`` is a serviceable parser.