File: //lib/python3/dist-packages/jeepney/integrate/__pycache__/asyncio.cpython-310.pyc
o
���` � @ s� d Z ddlZddlmZ ddlmZmZ ddlmZm Z m
Z
mZ ddlm
Z
ddlmZ ddlmZ dd lmZ ed
dd� G d
d� dej�ZG dd� de�Zddd�ZdS )z*Deprecated: use jeepney.io.asyncio instead� N)�warn)�Parser�MessageType)�AuthenticationError�BEGIN�make_auth_external�
SASLParser)�get_bus)�message_bus)�Router)� ProxyBasezOjeepney.integrate.asyncio is deprecated: please use jeepney.io.asyncio instead.� )�
stacklevelc @ sD e Zd Zdd� Zdd� Zdd� Zdd� Zd d
� Zdd� Zd
d� Z dS )�DBusProtocolc C s0 t � | _t� | _ttj�| _t�� | _d | _ d S �N)
r �auth_parserr �parserr �asyncio�Future�router�authentication�unique_name��self� r �;/usr/lib/python3/dist-packages/jeepney/integrate/asyncio.py�__init__ s
zDBusProtocol.__init__c C s || _ | j �dt� � d S )N� )� transport�writer )r r r r r �connection_made s zDBusProtocol.connection_madec C s2 | j �t� | j�d� | j| _| �| jj� d S )NT) r r r r �
set_result�data_received_post_auth�
data_receivedr �bufferr r r r �_authenticated s zDBusProtocol._authenticatedc C sD | j �|� | j jr| �� d S | j jr | j�t| j j�� d S d S r )r �feed�
authenticatedr% �errorr �
set_exceptionr )r �datar r r r# ! s �zDBusProtocol.data_receivedc C s"