AlkantarClanX12

Your IP : 3.138.135.201


Current Path : /opt/alt/python33/lib64/python3.3/email/__pycache__/
Upload File :
Current File : //opt/alt/python33/lib64/python3.3/email/__pycache__/headerregistry.cpython-33.pyo

�
��fCNc@s,dZddlmZddlmZddlmZGdd�d�ZGdd�d�ZGd	d
�d
e�Z	dd�Z
Gd
d�d�ZGdd�de�ZGdd�d�Z
Gdd�de
�ZGdd�d�ZGdd�de�ZGdd�de�ZGdd�de�ZGdd�d�ZGdd �d �ZGd!d"�d"e�ZGd#d$�d$e�ZGd%d&�d&�Zied'6ed(6e
d)6ed*6ed+6ed,6ed-6ed.6ed/6ed06ed16ed26ed36ed46ed56ed66ed76ed86ed96ZGd:d;�d;�Zd<S(=u;Representing and manipulating email headers via custom objects.

This module provides an implementation of the HeaderRegistry API.
The implementation is designed to flexibly follow RFC5322 rules.

Eventually HeaderRegistry will be a public API, but it isn't yet,
and will probably change some before that happens.

i(uutils(uerrors(u_header_value_parsercBs�|EeZdZdddddd�Zedd��Zedd��Zedd	��Zed
d��Z	dd
�Z
dd�Zdd�ZdS(uAddressucCs�|dk	r�|s|r'td��ntj|�\}}|r]tdj||���n|jrv|jd�n|j}|j}n||_	||_
||_dS(u�Create an object represeting a full email address.

        An address can have a 'display_name', a 'username', and a 'domain'.  In
        addition to specifying the username and domain separately, they may be
        specified together by using the addr_spec keyword *instead of* the
        username and domain keywords.  If an addr_spec string is specified it
        must be properly quoted according to RFC 5322 rules; an error will be
        raised if it is not.

        An Address object has display_name, username, domain, and addr_spec
        attributes, all of which are read-only.  The addr_spec and the string
        value of the object are both quoted according to RFC5322 rules, but
        without any Content Transfer Encoding.

        u=addrspec specified when username and/or domain also specifiedu6Invalid addr_spec; only '{}' could be parsed from '{}'iN(uNoneu	TypeErroruparseru
get_addr_specu
ValueErroruformatuall_defectsu
local_partudomainu
_display_nameu	_usernameu_domain(uselfudisplay_nameuusernameudomainu	addr_specua_surest((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyu__init__s					uAddress.__init__cCs|jS(N(u
_display_name(uself((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyudisplay_name6suAddress.display_namecCs|jS(N(u	_username(uself((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyuusername:suAddress.usernamecCs|jS(N(u_domain(uself((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyudomain>suAddress.domaincCsrt|j�}t|�t|tj�krCtj|j�}n	|j}|jrd|d|jS|sndS|S(u�The addr_spec (username@domain) portion of the address, quoted
        according to RFC 5322 rules, but with no Content Transfer Encoding.
        u@u<>(usetuusernameulenuparseru
DOT_ATOM_ENDSuquote_stringudomain(uselfunamesetulp((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyu	addr_specBs		uAddress.addr_speccCsdj|j|j|j�S(Nu6Address(display_name={!r}, username={!r}, domain={!r})(uformatudisplay_nameuusernameudomain(uself((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyu__repr__RsuAddress.__repr__cCs�t|j�}t|�t|tj�krCtj|j�}n	|j}|r�|jdkrgdn|j}dj||�S|jS(Nu<>uu{} <{}>(usetudisplay_nameulenuparseruSPECIALSuquote_stringu	addr_specuformat(uselfunamesetudispu	addr_spec((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyu__str__Vs	uAddress.__str__cCsPt|�t|�krdS|j|jkoO|j|jkoO|j|jkS(NF(utypeuFalseudisplay_nameuusernameudomain(uselfuother((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyu__eq__as
uAddress.__eq__N(
u__name__u
__module__u__qualname__uNoneu__init__upropertyudisplay_nameuusernameudomainu	addr_specu__repr__u__str__u__eq__(u
__locals__((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyuAddresss%uAddresscBsn|EeZdZd
d
dd�Zedd��Zedd��Zdd�Zd	d
�Z	dd�Z
d
S(uGroupcCs+||_|rt|�nt�|_dS(uCreate an object representing an address group.

        An address group consists of a display_name followed by colon and an
        list of addresses (see Address) terminated by a semi-colon.  The Group
        is created by specifying a display_name and a possibly empty list of
        Address objects.  A Group can also be used to represent a single
        address that is not in a group, which is convenient when manipulating
        lists that are a combination of Groups and individual Addresses.  In
        this case the display_name should be set to None.  In particular, the
        string representation of a Group whose display_name is None is the same
        as the Address object, if there is one and only one Address object in
        the addresses list.

        N(u
_display_nameutupleu
_addresses(uselfudisplay_nameu	addresses((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyu__init__ks	uGroup.__init__cCs|jS(N(u
_display_name(uself((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyudisplay_name}suGroup.display_namecCs|jS(N(u
_addresses(uself((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyu	addresses�suGroup.addressescCsdj|j|j�S(Nu'Group(display_name={!r}, addresses={!r}(uformatudisplay_nameu	addresses(uself((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyu__repr__�suGroup.__repr__cCs�|jdkr5t|j�dkr5t|jd�S|j}|dk	r�t|�}t|�t|tj�kr�tj|�}q�ndj	dd�|jD��}|r�d|n|}dj
||�S(Niiu, css|]}t|�VqdS(N(ustr(u.0ux((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyu	<genexpr>�su Group.__str__.<locals>.<genexpr>u u{}:{};(udisplay_nameuNoneulenu	addressesustrusetuparseruSPECIALSuquote_stringujoinuformat(uselfudispunamesetuadrstr((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyu__str__�s$	u
Group.__str__cCs>t|�t|�krdS|j|jko=|j|jkS(NF(utypeuFalseudisplay_nameu	addresses(uselfuother((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyu__eq__�suGroup.__eq__N(u__name__u
__module__u__qualname__uNoneu__init__upropertyudisplay_nameu	addressesu__repr__u__str__u__eq__(u
__locals__((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyuGroupisuGroupcBs�|EeZdZdZdd�Zdd�Zedd��Zedd	��Zd
d�Z	e
dd
��Zdd�ZdS(u
BaseHeaderu|Base class for message headers.

    Implements generic behavior and provides tools for subclasses.

    A subclass must define a classmethod named 'parse' that takes an unfolded
    value string and a dictionary as its arguments.  The dictionary will
    contain one key, 'defects', initialized to an empty list.  After the call
    the dictionary must contain two additional keys: parse_tree, set to the
    parse tree obtained from parsing the header, and 'decoded', set to the
    string value of the idealized representation of the data from the value.
    (That is, encoded words are decoded, and values that have canonical
    representations are so represented.)

    The defects key is intended to collect parsing defects, which the message
    parser will subsequently dispose of as appropriate.  The parser should not,
    insofar as practical, raise any errors.  Defects should be added to the
    list instead.  The standard header parsers register defects for RFC
    compliance issues, for obsolete RFC syntax, and for unrecoverable parsing
    errors.

    The parse method may add additional keys to the dictionary.  In this case
    the subclass must define an 'init' method, which will be passed the
    dictionary as its keyword arguments.  The method should use (usually by
    setting them as the value of similarly named attributes) and remove all the
    extra keys added by its parse method, and then use super to call its parent
    class with the remaining arguments and keywords.

    The subclass should also make sure that a 'max_count' attribute is defined
    that is either None or 1. XXX: need to better define this API.

    cCs{igd6}|j||�tj|d�rJtj|d�|d<ntj||d�}|d=|j||�|S(Nudefectsudecoded(uparseuutilsu_has_surrogatesu	_sanitizeustru__new__uinit(uclsunameuvalueukwdsuself((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyu__new__�s
uBaseHeader.__new__cCs||_||_||_dS(N(u_nameu_parse_treeu_defects(uselfunameu
parse_treeudefects((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyuinit�s		uBaseHeader.initcCs|jS(N(u_name(uself((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyuname�suBaseHeader.namecCs
t|j�S(N(utupleu_defects(uself((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyudefects�suBaseHeader.defectscCs+t|jj|jjt|�f|jfS(N(u_reconstruct_headeru	__class__u__name__u	__bases__ustru__dict__(uself((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyu
__reduce__�s
		uBaseHeader.__reduce__cCstj||�S(N(ustru__new__(uclsuvalue((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyu_reconstruct�suBaseHeader._reconstructcCsmtjtjtj|jd�tjdd�g�tjtjdd�g�|jg�}|jd|�S(utFold header according to policy.

        The parsed representation of the header is folded according to
        RFC5322 rules, as modified by the policy.  If the parse tree
        contains surrogateescaped bytes, the bytes are CTE encoded using
        the charset 'unknown-8bit".

        Any non-ASCII characters in the parse tree are CTE encoded using
        charset utf-8. XXX: make this a policy setting.

        The returned value is an ASCII-only string possibly containing linesep
        characters, and ending with a linesep character.  The string includes
        the header name and the ': ' separator.

        uheader-nameu:u
header-sepu ufwsupolicy(	uparseruHeaderuHeaderLabelu
ValueTerminalunameuCFWSListuWhiteSpaceTerminalu_parse_treeufold(uselfupolicyuheader((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyufold�suBaseHeader.foldN(
u__name__u
__module__u__qualname__u__doc__u__new__uinitupropertyunameudefectsu
__reduce__uclassmethodu_reconstructufold(u
__locals__((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyu
BaseHeader�s 

u
BaseHeadercCst||i�j|�S(N(utypeu_reconstruct(ucls_nameubasesuvalue((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyu_reconstruct_header�su_reconstruct_headercBs;|EeZdZdZeej�Ze	dd��Z
dS(uUnstructuredHeadercCs+|j|�|d<t|d�|d<dS(Nu
parse_treeudecoded(uvalue_parserustr(uclsuvalueukwds((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyuparsesuUnstructuredHeader.parseN(u__name__u
__module__u__qualname__uNoneu	max_countustaticmethoduparseruget_unstructureduvalue_parseruclassmethoduparse(u
__locals__((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyuUnstructuredHeadersuUnstructuredHeadercBs|EeZdZdZdS(uUniqueUnstructuredHeaderiN(u__name__u
__module__u__qualname__u	max_count(u
__locals__((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyuUniqueUnstructuredHeadersuUniqueUnstructuredHeadercse|EeZdZdZdZeej�Z	e
dd��Z�fdd�Ze
dd��Z�S(	u
DateHeaderu�Header whose value consists of a single timestamp.

    Provides an additional attribute, datetime, which is either an aware
    datetime using a timezone, or a naive datetime if the timezone
    in the input string is -0000.  Also accepts a datetime as input.
    The 'value' attribute is the normalized form of the timestamp,
    which means it is the output of format_datetime on the datetime.
    cCs�|sE|djtj��d|d<d|d<tj�|d<dSt|t�rftj	|�}n||d<tj
|d�|d<|j|d�|d<dS(Nudefectsudatetimeuudecodedu
parse_tree(uappenduerrorsuHeaderMissingRequiredValueuNoneuparseru	TokenListu
isinstanceustruutilsuparsedate_to_datetimeuformat_datetimeuvalue_parser(uclsuvalueukwds((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyuparse#s


uDateHeader.parsecs)|jd�|_t�j||�dS(Nudatetime(upopu	_datetimeusuperuinit(uselfuargsukw(u	__class__(u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyuinit1suDateHeader.initcCs|jS(N(u	_datetime(uself((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyudatetime5suDateHeader.datetimeN(u__name__u
__module__u__qualname__u__doc__uNoneu	max_countustaticmethoduparseruget_unstructureduvalue_parseruclassmethoduparseuinitupropertyudatetime(u
__locals__((u	__class__u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyu
DateHeaders	u
DateHeadercBs|EeZdZdZdS(uUniqueDateHeaderiN(u__name__u
__module__u__qualname__u	max_count(u
__locals__((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyuUniqueDateHeader:suUniqueDateHeadercst|EeZdZdZedd��Zedd��Z�fdd�Z	e
dd��Ze
d	d
��Z�S(u
AddressHeadercCstj|�\}}|S(N(uparseruget_address_list(uvalueuaddress_list((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyuvalue_parserCsuAddressHeader.value_parsercCs
t|t�r{|j|�|d<}g}x:|jD]/}|jt|jdd�|jD���q6Wt|j	�}n4t
|d�s�|g}ndd�|D�}g}||d<||d<djd	d�|D��|d
<d|kr	|j|d
�|d<ndS(Nu
parse_treec	Ss=g|]3}t|jpd|jp'd|jp3d��qS(u(uAddressudisplay_nameu
local_partudomain(u.0umb((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyu
<listcomp>Rs	u'AddressHeader.parse.<locals>.<listcomp>u__iter__cSs7g|]-}t|d�s-td|g�n|�qS(u	addressesN(uhasattruGroupuNone(u.0uitem((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyu
<listcomp>[s	ugroupsudefectsu, cSsg|]}t|��qS((ustr(u.0uitem((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyu
<listcomp>as	udecoded(u
isinstanceustruvalue_parseru	addressesuappenduGroupudisplay_nameu
all_mailboxesulistuall_defectsuhasattrujoin(uclsuvalueukwdsuaddress_listugroupsuaddrudefects((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyuparseIs$		


 uAddressHeader.parsecs8t|jd��|_d|_t�j||�dS(Nugroups(utupleupopu_groupsuNoneu
_addressesusuperuinit(uselfuargsukw(u	__class__(u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyuinites	uAddressHeader.initcCs|jS(N(u_groups(uself((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyugroupsjsuAddressHeader.groupscCs8|jdkr1tdd�|jD��|_n|jS(NcSs&g|]}|jD]}|�qqS((u	addresses(u.0ugroupuaddress((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyu
<listcomp>qs	u+AddressHeader.addresses.<locals>.<listcomp>(u
_addressesuNoneutupleu_groups(uself((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyu	addressesns"uAddressHeader.addressesN(
u__name__u
__module__u__qualname__uNoneu	max_countustaticmethoduvalue_parseruclassmethoduparseuinitupropertyugroupsu	addresses(u
__locals__((u	__class__u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyu
AddressHeader?su
AddressHeadercBs|EeZdZdZdS(uUniqueAddressHeaderiN(u__name__u
__module__u__qualname__u	max_count(u
__locals__((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyuUniqueAddressHeadervsuUniqueAddressHeadercBs&|EeZdZedd��ZdS(uSingleAddressHeadercCs;t|j�dkr0tdj|j���n|jdS(Niu9value of single address header {} is not a single addressi(ulenu	addressesu
ValueErroruformatuname(uself((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyuaddress}s	uSingleAddressHeader.addressN(u__name__u
__module__u__qualname__upropertyuaddress(u
__locals__((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyuSingleAddressHeader{suSingleAddressHeadercBs|EeZdZdZdS(uUniqueSingleAddressHeaderiN(u__name__u
__module__u__qualname__u	max_count(u
__locals__((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyuUniqueSingleAddressHeader�suUniqueSingleAddressHeadercs�|EeZdZdZeej�Zedd��Z	�fdd�Z
edd��Zedd	��Z
ed
d��Z�S(uMIMEVersionHeadericCs�|j|�|d<}t|�|d<|dj|j�|jdkrPdn|j|d<|j|d<|jdk	r�dj|d|d�|d<n
d|d<dS(Nu
parse_treeudecodedudefectsumajoruminoru{}.{}uversion(uvalue_parserustruextenduall_defectsuminoruNoneumajoruformat(uclsuvalueukwdsu
parse_tree((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyuparse�s"
!uMIMEVersionHeader.parsecsM|jd�|_|jd�|_|jd�|_t�j||�dS(Nuversionumajoruminor(upopu_versionu_majoru_minorusuperuinit(uselfuargsukw(u	__class__(u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyuinit�suMIMEVersionHeader.initcCs|jS(N(u_major(uself((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyumajor�suMIMEVersionHeader.majorcCs|jS(N(u_minor(uself((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyuminor�suMIMEVersionHeader.minorcCs|jS(N(u_version(uself((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyuversion�suMIMEVersionHeader.version(u__name__u
__module__u__qualname__u	max_countustaticmethoduparseruparse_mime_versionuvalue_parseruclassmethoduparseuinitupropertyumajoruminoruversion(u
__locals__((u	__class__u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyuMIMEVersionHeader�suMIMEVersionHeadercsP|EeZdZdZedd��Z�fdd�Zedd��Z�S(uParameterizedMIMEHeadericCsu|j|�|d<}t|�|d<|dj|j�|jdkrWi|d<ndd�|jD�|d<dS(Nu
parse_treeudecodedudefectsuparamscSs7i|]-\}}tj|�tj|�j��qS((uutilsu	_sanitizeulower(u.0unameuvalue((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyu
<dictcomp>�s	u1ParameterizedMIMEHeader.parse.<locals>.<dictcomp>(uvalue_parserustruextenduall_defectsuparamsuNone(uclsuvalueukwdsu
parse_tree((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyuparse�s
	uParameterizedMIMEHeader.parsecs)|jd�|_t�j||�dS(Nuparams(upopu_paramsusuperuinit(uselfuargsukw(u	__class__(u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyuinit�suParameterizedMIMEHeader.initcCs
|jj�S(N(u_paramsucopy(uself((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyuparams�suParameterizedMIMEHeader.params(	u__name__u
__module__u__qualname__u	max_countuclassmethoduparseuinitupropertyuparams(u
__locals__((u	__class__u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyuParameterizedMIMEHeader�s
uParameterizedMIMEHeadercsk|EeZdZeej�Z�fdd�Zedd��Z	edd��Z
edd��Z�S(	uContentTypeHeadercsGt�j||�tj|jj�|_tj|jj�|_dS(N(	usuperuinituutilsu	_sanitizeu_parse_treeumaintypeu	_maintypeusubtypeu_subtype(uselfuargsukw(u	__class__(u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyuinit�suContentTypeHeader.initcCs|jS(N(u	_maintype(uself((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyumaintype�suContentTypeHeader.maintypecCs|jS(N(u_subtype(uself((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyusubtype�suContentTypeHeader.subtypecCs|jd|jS(Nu/(umaintypeusubtype(uself((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyucontent_type�suContentTypeHeader.content_type(u__name__u
__module__u__qualname__ustaticmethoduparseruparse_content_type_headeruvalue_parseruinitupropertyumaintypeusubtypeucontent_type(u
__locals__((u	__class__u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyuContentTypeHeader�s
uContentTypeHeadercsG|EeZdZeej�Z�fdd�Zedd��Z	�S(uContentDispositionHeadercsGt�j||�|jj}|dkr1|ntj|�|_dS(N(usuperuinitu_parse_treeucontent_dispositionuNoneuutilsu	_sanitizeu_content_disposition(uselfuargsukwucd(u	__class__(u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyuinit�suContentDispositionHeader.initcCs|jS(N(u_content_disposition(uself((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyucontent_disposition�su,ContentDispositionHeader.content_disposition(
u__name__u
__module__u__qualname__ustaticmethoduparseru parse_content_disposition_headeruvalue_parseruinitupropertyucontent_disposition(u
__locals__((u	__class__u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyuContentDispositionHeader�suContentDispositionHeadercs_|EeZdZdZeej�Zedd��Z	�fdd�Z
edd��Z�S(uContentTransferEncodingHeadericCs?|j|�|d<}t|�|d<|dj|j�dS(Nu
parse_treeudecodedudefects(uvalue_parserustruextenduall_defects(uclsuvalueukwdsu
parse_tree((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyuparse�su#ContentTransferEncodingHeader.parsecs/t�j||�tj|jj�|_dS(N(usuperuinituutilsu	_sanitizeu_parse_treeucteu_cte(uselfuargsukw(u	__class__(u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyuinit�su"ContentTransferEncodingHeader.initcCs|jS(N(u_cte(uself((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyuctesu!ContentTransferEncodingHeader.cte(
u__name__u
__module__u__qualname__u	max_countustaticmethoduparseru&parse_content_transfer_encoding_headeruvalue_parseruclassmethoduparseuinitupropertyucte(u
__locals__((u	__class__u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyuContentTransferEncodingHeader�s
uContentTransferEncodingHeaderusubjectudateuresent-dateu	orig-dateusenderu
resent-senderutou	resent-touccu	resent-ccubccu
resent-bccufromuresent-fromureply-toumime-versionucontent-typeucontent-dispositionucontent-transfer-encodingcBsS|EeZdZdZeeddd�Zdd�Zdd�Z	dd	�Z
d
S(uHeaderRegistryu%A header_factory and header registry.cCs8i|_||_||_|r4|jjt�ndS(u�Create a header_factory that works with the Policy API.

        base_class is the class that will be the last class in the created
        header class's __bases__ list.  default_class is the class that will be
        used if "name" (see __call__) does not appear in the registry.
        use_default_map controls whether or not the default mapping of names to
        specialized classes is copied in to the registry when the factory is
        created.  The default is True.

        N(uregistryu
base_classu
default_classuupdateu_default_header_map(uselfu
base_classu
default_classuuse_default_map((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyu__init__!s
			uHeaderRegistry.__init__cCs||j|j�<dS(uLRegister cls as the specialized class for handling "name" headers.

        N(uregistryulower(uselfunameucls((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyumap_to_type3suHeaderRegistry.map_to_typecCs>|jj|j�|j�}td|j||jfi�S(Nu_(uregistryugetuloweru
default_classutypeu__name__u
base_class(uselfunameucls((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyu__getitem__9suHeaderRegistry.__getitem__cCs||||�S(u�Create a header instance for header 'name' from 'value'.

        Creates a header instance by creating a specialized class for parsing
        and representing the specified header by combining the factory
        base_class with a specialized class from the registry or the
        default_class, and passing the name and value to the constructed
        class's constructor.

        ((uselfunameuvalue((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyu__call__=s
uHeaderRegistry.__call__NT(u__name__u
__module__u__qualname__u__doc__u
BaseHeaderuUnstructuredHeaderuTrueu__init__umap_to_typeu__getitem__u__call__(u
__locals__((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyuHeaderRegistrysuHeaderRegistryN(u__doc__uemailuutilsuerrorsu_header_value_parseruparseruAddressuGroupustru
BaseHeaderu_reconstruct_headeruUnstructuredHeaderuUniqueUnstructuredHeaderu
DateHeaderuUniqueDateHeaderu
AddressHeaderuUniqueAddressHeaderuSingleAddressHeaderuUniqueSingleAddressHeaderuMIMEVersionHeaderuParameterizedMIMEHeaderuContentTypeHeaderuContentDispositionHeaderuContentTransferEncodingHeaderu_default_header_mapuHeaderRegistry(((u9/opt/alt/python33/lib64/python3.3/email/headerregistry.pyu<module>	sRZ5a'7
%