Aurora
Adminer
Auto Root
WP Admin
cPanel Reset
Anti Backdoor
Root
lib
python3.9
site-packages
oci
_vendor
sseclient
__pycache__
Upload
New Folder
New File
Name
Size
Permissions
Actions
..
-
-
-
Upload File
Select File
New Folder
Folder Name
New File
File Name
Add WordPress Admin
Database Host
Database Name
Database User
Database Password
Admin Username
Admin Password
cPanel Password Reset
Email Address
Edit: __init__.cpython-39.opt-1.pyc
a ���f| � @ sB d Z ddlZdZdZdgZdZG dd� de�ZG dd � d e�ZdS ) zv Server Side Events (SSE) client for Python. Provides a generator of SSE received through an existing HTTP response. � Nz-Maxime Petazzoni <maxime.petazzoni@bulix.org>zmaxime.petazzoni@bulix.org� SSEClient�:c @ s2 e Zd ZdZddd�Zdd� Zdd� Zd d � ZdS ) r z{Implementation of a SSE client. See http://www.w3.org/TR/2009/WD-eventsource-20091029/ for the specification. �utf-8c C s. t �| jj�| _| j�d|� || _|| _dS )a3 Initialize the SSE client over an existing, ready to consume event source. The event source is expected to be a binary stream and have a close() method. That would usually be something that implements io.BinaryIOBase, like an httplib or urllib3 HTTPResponse object. z+Initialized SSE client from event source %sN)�loggingZ getLogger� __class__� __module__�_logger�debug� _event_source� _char_enc)�selfZevent_sourceZchar_enc� r �B/usr/lib/python3.9/site-packages/oci/_vendor/sseclient/__init__.py�__init__ s �zSSEClient.__init__c c sJ d}| j D ]0}|�d�D ] }||7 }|�d�r|V d}qq |rF|V dS )ar Read the incoming event source stream and yield event chunks. Unfortunately it is possible for some servers to decide to break an event into multiple HTTP chunks in the response. It is thus necessary to correctly stitch together consecutive response chunks and find the SSE delimiter (empty new line) to yield full, correct event chunks.� T)s s s N)r � splitlines�endswith)r �data�chunk�liner r r �_read% s zSSEClient._readc c s | � � D �]}t� }|�� D ]�}|�| j�}|�� r|�t�r@q|�td�}|d }||j vrn| j �d|� qt|�dkr�|d �d�r�|d dd � }q�|d }nd}|dkr�|j | |d 7 <