Sindbad~EG File Manager

Current Path : /usr/local/lib/python3.12/site-packages/wikipedia/__pycache__/
Upload File :
Current File : //usr/local/lib/python3.12/site-packages/wikipedia/__pycache__/exceptions.cpython-312.pyc

�

(ٜg����dZddlZdZGd�de�ZGd�de�ZGd�d	e�ZGd
�de�ZGd�d
e�Zy)z1
Global wikipedia exception and warning classes.
�NzNThis shouldn't happen. Please report on GitHub: github.com/goldsmith/Wikipediac�H�eZdZdZd�Zd�ZejdkDrd�Zyd�Zy)�WikipediaExceptionzBase Wikipedia exception class.c��||_y�N)�error)�selfrs  �?/usr/local/lib/python3.12/site-packages/wikipedia/exceptions.py�__init__zWikipediaException.__init__�	���D�J�c�8�dj|j�S)Nz<An unknown error occured: "{0}". Please report it on GitHub!)�formatr�rs r	�__unicode__zWikipediaException.__unicode__s��K�R�R�SW�S]�S]�^�^r)�rc�"�|j�Sr)rrs r	�__str__zWikipediaException.__str__s��
�
�
�
�rc�@�|j�jd�S)N�utf8)r�encoders r	rzWikipediaException.__str__s��
�
�
�
�
&�
&�v�
.�.rN)	�__name__�
__module__�__qualname__�__doc__r
r�sys�version_infor�rr	rrs*��'��_�	����� �/rrc��eZdZdZdd�Zd�Zy)�	PageErrorz3Exception raised when no Wikipedia matched a query.Nc�,�|r||_y|d|_y)Nr)�pageid�title)rr!�argss   r	r
zPageError.__init__ s��
��d�k���7�d�jrc��t|d�rdj|j�Sdj|j�S)Nr"z2"{0}" does not match any pages. Try another query!z7Page id "{0}" does not match any pages. Try another id!)�hasattrrr"r!rs r	rzPageError.__unicode__&s9���t�W��
D�
K�
K�D�J�J�
W�W�
I�
P�
P�QU�Q\�Q\�
]�]rr�rrrrr
rrrr	rrs��;��^rrc��eZdZdZd�Zd�Zy)�DisambiguationErrora
  Exception raised when a page resolves to a Disambiguation page.

  The `options` property contains a list of titles
  of Wikipedia pages that the query may refer to.

  .. note:: `options` does not include titles that do not link to a valid Wikipedia page.
  c� �||_||_yr)r"�options)rr"�may_refer_tos   r	r
zDisambiguationError.__init__7s���D�J��D�Lrc�l�dj|jdj|j��S)Nz"{0}" may refer to: 
{1}�
)rr"�joinr*rs r	rzDisambiguationError.__unicode__;s&��)�0�0����T�Y�Y�t�|�|�=T�U�UrNr&rrr	r(r(-s��� �Vrr(c��eZdZdZd�Zd�Zy)�
RedirectErrorzGException raised when a page title unexpectedly resolves to a redirect.c��||_yr)r")rr"s  r	r
zRedirectError.__init__Brrc�8�dj|j�S)Nz]"{0}" resulted in a redirect. Set the redirect property to True to allow automatic redirects.)rr"rs r	rzRedirectError.__unicode__Es ��m�t�t�uy�u�u�A�ArNr&rrr	r0r0?s��O��Arr0c��eZdZdZd�Zd�Zy)�HTTPTimeoutErrorzCException raised when a request to the Mediawiki servers times out.c��||_yr)�query)rr6s  r	r
zHTTPTimeoutError.__init__Lrrc�8�dj|j�S)NzxSearching for "{0}" resulted in a timeout. Try again in a few seconds, and make sure you have rate limiting set to True.)rr6rs r	rzHTTPTimeoutError.__unicode__Os5��I�P�P�QU�Q[�Q[�\�\rNr&rrr	r4r4Is��K��\rr4)	rr�ODD_ERROR_MESSAGE�	Exceptionrrr(r0r4rrr	�<module>r:s`����e��/��/�$
^�"�
^� V�,�V�$A�&�A�\�)�\r

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists