Spamworldpro Mini Shell
Spamworldpro


Server : Apache/2.4.62 (Unix) OpenSSL/1.0.2k-fips
System : Linux server1.richineiserver.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User : fdshops ( 1003)
PHP Version : 8.2.21
Disable Function : NONE
Directory :  /lib/python2.7/site-packages/dns/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib/python2.7/site-packages/dns/exception.pyo
�
m!|Uc@s�dZdefd��YZdefd��YZdefd��YZdefd��YZd	efd
��YZdefd��YZd
S(sCommon DNS Exceptions.tDNSExceptioncBsPeZdZdZe�ZdZd�Zd�Z	d�Z
d�Zd�ZRS(s�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 standard Python Exception class
    as before and all *args are printed by 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 has to be empty and all kwargs has to exactly match
    set in class variable self.supp_kwargs. All kwargs are stored inside
    self.kwargs and used in new __str__ implementation to construct
    formated message based on self.fmt string.

    In the simplest case it is enough to override supp_kwargs and fmt
    class variables to get nice parametrized messages.
    cOs�|j||�|j|�||_|jdkrD|j|_n|rctt|�j|�ntt|�j|j�dS(N(	t
_check_paramst
_check_kwargstkwargstmsgtNonet__doc__tsuperRt__init__(tselftargsR((s1/usr/lib/python2.7/site-packages/dns/exception.pyR-s
	cOs|s|rndS(ssOld exceptions supported only args and not kwargs.

        For sanity we do not allow to mix old and new behavior.N((R	R
R((s1/usr/lib/python2.7/site-packages/dns/exception.pyR9scKs
|r	ndS(N((R	R((s1/usr/lib/python2.7/site-packages/dns/exception.pyRAscKs�i}x�|j�D]t\}}t|ttf�r}ttt|��||<t||�dkr�||j�||<q�q|||<qW|S(s�Format kwargs before printing them.

        Resulting dictionary has to have keys necessary for str.format call
        on fmt class variable.
        i(titemst
isinstancetlisttsettmaptstrtlentpop(R	Rtfmtargstkwtdata((s1/usr/lib/python2.7/site-packages/dns/exception.pyt_fmt_kwargsGscCsK|jr4|jr4|j|j�}|jj|�Stt|�j�SdS(N(RtfmtRtformatRRt__str__(R	R((s1/usr/lib/python2.7/site-packages/dns/exception.pyRYsN(
t__name__t
__module__RRRRtsupp_kwargsRRRRRR(((s1/usr/lib/python2.7/site-packages/dns/exception.pyRs					t	FormErrorcBseZdZRS(sDNS message is malformed.(RRR(((s1/usr/lib/python2.7/site-packages/dns/exception.pyRcstSyntaxErrorcBseZdZRS(sText input is malformed.(RRR(((s1/usr/lib/python2.7/site-packages/dns/exception.pyRfst
UnexpectedEndcBseZdZRS(sText input ended unexpectedly.(RRR(((s1/usr/lib/python2.7/site-packages/dns/exception.pyRistTooBigcBseZdZRS(sThe DNS message is too big.(RRR(((s1/usr/lib/python2.7/site-packages/dns/exception.pyR lstTimeoutcBs+eZdZedg�Zded ZRS(sThe DNS operation timed out.ttimeouts%s after {timeout} secondsi����(RRRRRR(((s1/usr/lib/python2.7/site-packages/dns/exception.pyR!osN(Rt	ExceptionRRRRR R!(((s1/usr/lib/python2.7/site-packages/dns/exception.pyt<module>sP

Spamworldpro Mini