AlkantarClanX12
Current Path : /opt/alt/python33/lib64/python3.3/email/__pycache__/ |
Current File : //opt/alt/python33/lib64/python3.3/email/__pycache__/feedparser.cpython-33.pyo |
� ��f�V c @ s� d Z d d g Z d d l Z d d l m Z d d l m Z d d l m Z e j d � Z e j d � Z e j d � Z e j d � Z e j d � Z d Z d Z e � Z Gd d � d e � Z Gd d � d � Z Gd d � d e � Z d S( u FeedParser - An email feed parser. The feed parser implements an interface for incrementally parsing an email message, line by line. This has advantages for certain applications, such as those reading email messages off a socket. FeedParser.feed() is the primary interface for pushing new data into the parser. It returns when there's nothing more it can do with the available data. When you have no more data to push into the parser, call .close(). This completes the parsing and returns the root message object. The other advantage of this parser is that it will never raise a parsing exception. Instead, when it finds something unexpected, it adds a 'defect' to the current message. Defects are just instances that live on the message object's .defects attribute. u FeedParseru BytesFeedParseri N( u errors( u message( u compat32u | | u ( | | )u ( | | )\Zu( ^(From |[\041-\071\073-\176]{1,}:|[\t ])u u c B s� | Ee Z d Z d Z d d � Z d d � Z d d � Z d d � Z d d � Z d d � Z d d � Z d d � Z d d � Z d d � Z d S( u BufferedSubFileuk A file-ish object that can have new data loaded into it. You can also push and pop line-matching predicates onto a stack. When the current predicate matches the current line, a false EOF response (i.e. empty string) is returned instead. This lets the parser adhere to a simple abstraction -- it parses until EOF closes the current message. c C s( d | _ g | _ g | _ d | _ d S( Nu F( u _partialu _linesu _eofstacku Falseu _closed( u self( ( u5 /opt/alt/python33/lib64/python3.3/email/feedparser.pyu __init__4 s u BufferedSubFile.__init__c C s | j j | � d S( N( u _eofstacku append( u selfu pred( ( u5 /opt/alt/python33/lib64/python3.3/email/feedparser.pyu push_eof_matcher>