AlkantarClanX12
Current Path : /opt/alt/python33/lib64/python3.3/email/__pycache__/ |
Current File : //opt/alt/python33/lib64/python3.3/email/__pycache__/parser.cpython-33.pyc |
� ��f� c @ s� d Z d d d d g Z d d l Z d d l m Z m Z d d l m Z m Z d d l m Z d d l m Z Gd d � d � Z Gd d � d e � Z Gd d � d � Z Gd d � d e � Z d S( u- A parser of RFC 2822 and MIME email messages.u Parseru HeaderParseru BytesParseru BytesHeaderParseri N( u StringIOu TextIOWrapper( u FeedParseru BytesFeedParser( u Message( u compat32c B sG | Ee Z d Z d e e d d �Z d d d � Z d d d � Z d S( u Parseru policyc C s | | _ | | _ d S( u� Parser of RFC 2822 and MIME email messages. Creates an in-memory object tree representing the email message, which can then be manipulated and turned over to a Generator to return the textual representation of the message. The string must be formatted as a block of RFC 2822 headers and header continuation lines, optionally preceeded by a `Unix-from' header. The header block is terminated either by the end of the string or by a blank line. _class is the class to instantiate for new message objects when they must be created. This class must have a constructor that can take zero arguments. Default is Message.Message. The policy keyword specifies a policy object that controls a number of aspects of the parser's operation. The default policy maintains backward compatibility. N( u _classu policy( u selfu _classu policy( ( u1 /opt/alt/python33/lib64/python3.3/email/parser.pyu __init__ s u Parser.__init__c C sa t | j d | j �} | r+ | j � n x) | j d � } | sG Pn | j | � q. | j � S( u\ Create a message structure from the data in a file. Reads all the data from the file and returns the root of the message structure. Optional headersonly is a flag specifying whether to stop parsing after reading the headers or not. The default is False, meaning it parses the entire contents of the file. u policyi ( u FeedParseru _classu policyu _set_headersonlyu readu feedu close( u selfu fpu headersonlyu feedparseru data( ( u1 /opt/alt/python33/lib64/python3.3/email/parser.pyu parse+ s u Parser.parsec C s | j t | � d | �S( u- Create a message structure from a string. Returns the root of the message structure. Optional headersonly is a flag specifying whether to stop parsing after reading the headers or not. The default is False, meaning it parses the entire contents of the file. u headersonly( u parseu StringIO( u selfu textu headersonly( ( u1 /opt/alt/python33/lib64/python3.3/email/parser.pyu parsestr= s u Parser.parsestrNF( u __name__u __module__u __qualname__u compat32u Messageu __init__u Falseu parseu parsestr( u __locals__( ( u1 /opt/alt/python33/lib64/python3.3/email/parser.pyu Parser s c B s2 | Ee Z d Z d d d � Z d d d � Z d S( u HeaderParserc C s t j | | d � S( NT( u Parseru parseu True( u selfu fpu headersonly( ( u1 /opt/alt/python33/lib64/python3.3/email/parser.pyu parseJ s u HeaderParser.parsec C s t j | | d � S( NT( u Parseru parsestru True( u selfu textu headersonly( ( u1 /opt/alt/python33/lib64/python3.3/email/parser.pyu parsestrM s u HeaderParser.parsestrNT( u __name__u __module__u __qualname__u Trueu parseu parsestr( u __locals__( ( u1 /opt/alt/python33/lib64/python3.3/email/parser.pyu HeaderParserI s c B s>