• Barry Warsaw's avatar
    To better support default content types, fix an API wart, and preserve · c1068642
    Barry Warsaw yazdı
    backwards compatibility, we're silently deprecating get_type(),
    get_subtype() and get_main_type().  We may eventually noisily
    deprecate these.  For now, we'll just fix a bug in the splitting of
    the main and subtypes.
    
    get_content_type(), get_content_maintype(), get_content_subtype(): New
    methods which replace the above.  These /always/ return a content type
    string and do not take a failobj, because an email message always at
    least has a default content type.
    
    set_default_type(): Someday there may be additional default content
    types, so don't hard code an assertion about the value of the ctype
    argument.
    c1068642
Adı
Son kayıt (commit)
Son güncelleme
Demo Loading commit data...
Doc Loading commit data...
Grammar Loading commit data...
Include Loading commit data...
Lib Loading commit data...
Mac Loading commit data...
Misc Loading commit data...
Modules Loading commit data...
Objects Loading commit data...
PC Loading commit data...
PCbuild Loading commit data...
Parser Loading commit data...
Python Loading commit data...
RISCOS Loading commit data...
Tools Loading commit data...
.cvsignore Loading commit data...
.hgtags Loading commit data...
LICENSE Loading commit data...
Makefile.pre.in Loading commit data...
PLAN.txt Loading commit data...
README Loading commit data...
configure Loading commit data...
configure.in Loading commit data...
install-sh Loading commit data...
pyconfig.h.in Loading commit data...
setup.py Loading commit data...