- Python Home
- About
- News
- Documentation
- Downloads
- Community
- Foundation
- Developer's Guide
- Issue Tracker
- Issues
- Summaries
- User
- Administration
- Help
➜
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 | v+python |
|---|---|
| Recipients | berker.peksag, catalin.iacob, demian.brecht, ezio.melotti, ggenellina, martin.panter, mwatkins, orsenthil, petri.lehtinen, r.david.murray, v+python |
| Date | 2017-03-19.05:40:00 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1489902000.87.0.131764140119.issue5053@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
|---|
It is certainly true that getallmatchingheaders is broken... because the data it is looking at has changed format.
Here is a replacement that is as compatible as can be, based on the changed format.
name = name.lower()
n = len(name)
lst = []
for line, data in self.items():
if line.lower() == name:
lst.append(line + ': ' + data)
return lst
The changed format has merged continuation lines, and separated keys and values into a list of duplet tuples. Iterators keys, values, and items exist, keys are not necessarily unique. |
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2017-03-19 05:40:01 | v+python | set | recipients: + v+python, ggenellina, orsenthil, ezio.melotti, mwatkins, r.david.murray, catalin.iacob, petri.lehtinen, berker.peksag, martin.panter, demian.brecht |
| 2017-03-19 05:40:00 | v+python | set | messageid: <1489902000.87.0.131764140119.issue5053@psf.upfronthosting.co.za> |
| 2017-03-19 05:40:00 | v+python | link | issue5053 messages |
| 2017-03-19 05:40:00 | v+python | create |
Powered by Roundup Copyright © 1990-2022, Python Software Foundation
Legal Statements
