Staging
v0.5.1
https://github.com/python/cpython
Revision abfc37491cecb0a052d54c3bf0525ac140e94f7e authored by R David Murray on 29 May 2012, 13:14:44 UTC, committed by R David Murray on 29 May 2012, 13:14:44 UTC
This feature was supposed to be part of the initial email6 checkin, but it got
lost in my big refactoring.

In this patch I'm not providing an easy way to turn off the errors, but they
only happen when a header is added programmatically, and it is almost never
the right thing to do to allow the duplicate to be added.  An application that
needs to add duplicates of unique headers can create a policy subclass to
allow it.
1 parent 6066fe1
History
Tip revision: abfc37491cecb0a052d54c3bf0525ac140e94f7e authored by R David Murray on 29 May 2012, 13:14:44 UTC
#10839: raise an error on add of duplicate unique headers in new email policies
Tip revision: abfc374
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.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.8 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.9 KB

README

back to top