Файловый менеджер - Редактировать - /opt/imh-python/lib/python3.9/site-packages/twisted/words/protocols/jabber/__pycache__/sasl.cpython-39.pyc
Ðазад
a k�h� � @ s� d Z ddlZddlmZmZ ddlmZ ddlmZm Z ddl mZ dZdd � Z G d d� de�ZG dd � d e�ZG dd� de�ZG dd� de�Ze�d�Zdd� ZG dd� de j�ZdS )z XMPP-specific SASL profile. � N)� b64decode� b64encode)�defer)�sasl_mechanisms� xmlstream)�domishz urn:ietf:params:xml:ns:xmpp-saslc C s8 g }| j tdf �� D ]}|jdkr|�t|�� q|S )zJ Parse the SASL feature to extract the available mechanism names. � mechanisms� mechanism)�features�NS_XMPP_SASL�elements�name�append�str)Zxsr �element� r ��/root/rpmbuild/BUILDROOT/imh-python39-modules-3.9.7-92.el8.x86_64/opt/imh-python/lib/python3.9/site-packages/twisted/words/protocols/jabber/sasl.py�get_mechanisms s r c @ s e Zd ZdZdS )� SASLErrorz SASL base exception. N��__name__� __module__�__qualname__�__doc__r r r r r s r c @ s e Zd ZdZdS )�SASLNoAcceptableMechanismzB The server did not present an acceptable SASL mechanism. Nr r r r r r % s r c @ s( e Zd ZdZddd�Zed�dd�ZdS ) � SASLAuthErrorz% SASL Authentication failed. Nc C s || _ d S )N�� condition)�selfr r r r �__init__0 s zSASLAuthError.__init__)�returnc C s d| j S )NzSASLAuthError with condition %rr �r r r r �__str__3 s zSASLAuthError.__str__)N)r r r r r r r"