Staging
v0.5.1
v0.5.1
Revision 97f43c019f3bb8376a3a5f7bc52e97b4c2ed8e16 authored by R David Murray on 24 June 2012, 09:03:27 UTC, committed by R David Murray on 24 June 2012, 09:03:27 UTC
This code passes all the same tests that the existing RFC mime header parser passes, plus a bunch of additional ones. There are a couple of commented out tests where there are issues with the folding. The folding doesn't normally get invoked for headers parsed from source, and the cases are marginal anyway (headers with invalid binary data) so I'm not worried about them, but will fix them after the beta. There are things that can be done to make this API even more convenient, but I think this is a solid foundation worth having. And the parser is a full RFC parser, so it handles cases that the current parser doesn't. (There are also probably cases where it fails when the current parser doesn't, but I haven't found them yet ;) Oh, yeah, and there are some really ugly bits in the parser for handling some 'postel' cases that are unfortunately common. I hope/plan to to eventually refactor a lot of the code in the parser which should reduce the line count...but there is no escaping the fact that the error recovery is welter of special cases.
1 parent 49c15d4
File | Mode | Size |
---|---|---|
Doc | ||
Grammar | ||
Include | ||
Lib | ||
Mac | ||
Misc | ||
Modules | ||
Objects | ||
PC | ||
PCbuild | ||
Parser | ||
Python | ||
Tools | ||
.bzrignore | -rw-r--r-- | 584 bytes |
.gitignore | -rw-r--r-- | 865 bytes |
.hgeol | -rw-r--r-- | 721 bytes |
.hgignore | -rw-r--r-- | 1.2 KB |
.hgtags | -rw-r--r-- | 5.0 KB |
.hgtouch | -rw-r--r-- | 467 bytes |
LICENSE | -rw-r--r-- | 14.5 KB |
Makefile.pre.in | -rw-r--r-- | 45.9 KB |
README | -rw-r--r-- | 6.4 KB |
config.guess | -rwxr-xr-x | 43.8 KB |
config.sub | -rwxr-xr-x | 34.6 KB |
configure | -rwxr-xr-x | 414.3 KB |
configure.ac | -rw-r--r-- | 128.5 KB |
install-sh | -rwxr-xr-x | 7.0 KB |
pyconfig.h.in | -rw-r--r-- | 39.1 KB |
setup.py | -rw-r--r-- | 87.9 KB |
Computing file changes ...