Staging
v0.5.1
https://github.com/python/cpython
Revision 0b6f6c82b51b7071d88f48abb3192bf3dc2a2d24 authored by R David Murray on 25 May 2012, 22:42:14 UTC, committed by R David Murray on 25 May 2012, 22:42:14 UTC
When the new policies are used (and only when the new policies are explicitly
used) headers turn into objects that have attributes based on their parsed
values, and can be set using objects that encapsulate the values, as well as
set directly from unicode strings.  The folding algorithm then takes care of
encoding unicode where needed, and folding according to the highest level
syntactic objects.

With this patch only date and time headers are parsed as anything other than
unstructured, but that is all the helper methods in the existing API handle.
I do plan to add more parsers, and complete the set specified in the RFC
before the package becomes stable.
1 parent 0fa2edd
History
Tip revision: 0b6f6c82b51b7071d88f48abb3192bf3dc2a2d24 authored by R David Murray on 25 May 2012, 22:42:14 UTC
#12586: add provisional email policy with new header parsing and folding.
Tip revision: 0b6f6c8
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-- 692 bytes
.hgignore -rw-r--r-- 1.1 KB
.hgtags -rw-r--r-- 4.9 KB
.hgtouch -rw-r--r-- 467 bytes
LICENSE -rw-r--r-- 14.5 KB
Makefile.pre.in -rw-r--r-- 48.0 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 410.9 KB
configure.ac -rw-r--r-- 126.8 KB
install-sh -rwxr-xr-x 7.0 KB
pyconfig.h.in -rw-r--r-- 39.1 KB
setup.py -rw-r--r-- 86.8 KB

README

back to top