/opt/alt/python36/lib64/python3.6/email/__pycache__
NameSizeModeActions
base64mime.cpython-36.opt-1.pyc32330644editdlrm
base64mime.cpython-36.opt-2.pyc14500644editdlrm
base64mime.cpython-36.pyc32330644editdlrm
charset.cpython-36.opt-1.pyc114890644editdlrm
charset.cpython-36.opt-2.pyc51480644editdlrm
charset.cpython-36.pyc115260644editdlrm
contentmanager.cpython-36.opt-1.pyc73030644editdlrm
contentmanager.cpython-36.opt-2.pyc72970644editdlrm
contentmanager.cpython-36.pyc73030644editdlrm
encoders.cpython-36.opt-1.pyc16550644editdlrm
encoders.cpython-36.opt-2.pyc12980644editdlrm
encoders.cpython-36.pyc16550644editdlrm
errors.cpython-36.opt-1.pyc61840644editdlrm
errors.cpython-36.opt-2.pyc46360644editdlrm
errors.cpython-36.pyc61840644editdlrm
feedparser.cpython-36.opt-1.pyc105050644editdlrm
feedparser.cpython-36.opt-2.pyc88340644editdlrm
feedparser.cpython-36.pyc106590644editdlrm
generator.cpython-36.opt-1.pyc125280644editdlrm
generator.cpython-36.opt-2.pyc88260644editdlrm
generator.cpython-36.pyc125280644editdlrm
header.cpython-36.opt-1.pyc164950644editdlrm
header.cpython-36.opt-2.pyc108650644editdlrm
header.cpython-36.pyc164950644editdlrm
headerregistry.cpython-36.opt-1.pyc213810644editdlrm
headerregistry.cpython-36.opt-2.pyc156040644editdlrm
headerregistry.cpython-36.pyc214370644editdlrm
iterators.cpython-36.opt-1.pyc19250644editdlrm
iterators.cpython-36.opt-2.pyc12970644editdlrm
iterators.cpython-36.pyc19250644editdlrm
message.cpython-36.opt-1.pyc380070644editdlrm
message.cpython-36.opt-2.pyc214090644editdlrm
message.cpython-36.pyc380070644editdlrm
parser.cpython-36.opt-1.pyc57400644editdlrm
parser.cpython-36.opt-2.pyc27140644editdlrm
parser.cpython-36.pyc57400644editdlrm
policy.cpython-36.opt-1.pyc96330644editdlrm
policy.cpython-36.opt-2.pyc34100644editdlrm
policy.cpython-36.pyc96330644editdlrm
quoprimime.cpython-36.opt-1.pyc76950644editdlrm
quoprimime.cpython-36.opt-2.pyc42120644editdlrm
quoprimime.cpython-36.pyc76950644editdlrm
utils.cpython-36.opt-1.pyc98890644editdlrm
utils.cpython-36.opt-2.pyc65540644editdlrm
utils.cpython-36.pyc98890644editdlrm
_encoded_words.cpython-36.opt-1.pyc55990644editdlrm
_encoded_words.cpython-36.opt-2.pyc37070644editdlrm
_encoded_words.cpython-36.pyc55990644editdlrm
_header_value_parser.cpython-36.opt-1.pyc762120644editdlrm
_header_value_parser.cpython-36.opt-2.pyc597150644editdlrm
_header_value_parser.cpython-36.pyc762640644editdlrm
_parseaddr.cpython-36.opt-1.pyc125260644editdlrm
_parseaddr.cpython-36.opt-2.pyc95600644editdlrm
_parseaddr.cpython-36.pyc125260644editdlrm
_policybase.cpython-36.opt-1.pyc148430644editdlrm
_policybase.cpython-36.opt-2.pyc59900644editdlrm
_policybase.cpython-36.pyc148430644editdlrm
__init__.cpython-36.opt-1.pyc16840644editdlrm
__init__.cpython-36.opt-2.pyc10690644editdlrm
__init__.cpython-36.pyc16840644editdlrm
Edit: /opt/alt/python36/lib64/python3.6/email/__pycache__/parser.cpython-36.pyc (5740B)
3 bf@sdZddddddgZddlmZmZdd lmZmZdd lm Z Gd ddZ Gd dde Z Gd ddZ Gddde Z dS)z-A parser of RFC 2822 and MIME email messages.Parser HeaderParser BytesParserBytesHeaderParser FeedParserBytesFeedParser)StringIO TextIOWrapper)rr)compat32c@s0eZdZd edddZd ddZd dd ZdS) rN)policycCs||_||_dS)aParser 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 preceded 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)_classr )selfr r r1/opt/alt/python36/lib64/python3.6/email/parser.py__init__szParser.__init__FcCsDt|j|jd}|r|jx|jd}|s.P|j|qW|jS)a\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. )r i )rr r Z_set_headersonlyreadZfeedclose)r fp headersonlyZ feedparserdatarrrparse)s z Parser.parsecCs|jt||dS)a-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. )r)rr)r textrrrrparsestr;szParser.parsestr)N)F)F)__name__ __module__ __qualname__r rrrrrrrrs c@s eZdZdddZdddZdS) rTcCstj||dS)NT)rr)r rrrrrrHszHeaderParser.parsecCstj||dS)NT)rr)r rrrrrrKszHeaderParser.parsestrN)T)T)rrrrrrrrrrGs c@s(eZdZddZd ddZd ddZdS) rcOst|||_dS)aParser of binary 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 input must be formatted as a block of RFC 2822 headers and header continuation lines, optionally preceded by a `Unix-from' header. The header block is terminated either by the end of the input 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. N)rparser)r argskwrrrrQszBytesParser.__init__Fc Cs,t|ddd}z|jj||S|jXdS)acCreate a message structure from the data in a binary 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. asciisurrogateescape)encodingerrorsN)r rrdetach)r rrrrrrcszBytesParser.parsecCs|jddd}|jj||S)a2Create a message structure from a byte 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. ASCIIr )r")decoderr)r rrrrr parsebytesrszBytesParser.parsebytesN)F)F)rrrrrr&rrrrrOs c@s eZdZdddZdddZdS) rTcCstj||ddS)NT)r)rr)r rrrrrrszBytesHeaderParser.parsecCstj||ddS)NT)r)rr&)r rrrrrr&szBytesHeaderParser.parsebytesN)T)T)rrrrr&rrrrr~s N)__doc____all__iorr Zemail.feedparserrrZemail._policybaser rrrrrrrrs 7/