jx d dl mZ d dl mZ d dl mZ d dlZd dlZd dlmZ d dl Z d dl
mZ d dlm
Z d dlmZ d dlmZ d dlZ ej d ej Z G d
de Z G d d
e Z G d de ZdS ) )print_function)division)absolute_importN)client)configparser)SafeConfigParser)
ExpatErrorz"^(?P.+) \((?P.+)\)$c " e Zd ZdZ fdZ xZS )PyPIRpcApiErrorze
Generic error class that means that we cannot properly
get information from xml rpc api
c ^ t t | d|z d S )NzWe are having issues with PyPI RPC api. You can check https://status.python.org/ to see of there are any problems with PyPI or contact CloudLinux support if you see this message for a long time.Original message was: '%s')superr __init__)selfmessage __class__s ]/opt/cloudlinux/venv/lib64/python3.11/site-packages/clselect/clselectpythonuser/extensions.pyr zPyPIRpcApiError.__init__! s>
ot$$--
) ,3
3 4 4 4 4 4 __name__
__module____qualname____doc__r
__classcell__r s @r r r sB 4 4 4 4 4 4 4 4 4r r c " e Zd ZdZ fdZ xZS )PyPIMaintenanceExceptionz
Raised when PyPY returns 503 error, which means
that service is unavailable temporary and we should try again later.
c X t t | d d S )NzLooks like PyPI is down for maintenance and we are not able to use it. You can check https://status.python.org/ to see of there are any problems with PyPI or contact CloudLinux support if you see this message for a long time.)r
r r )r r s r r z!PyPIMaintenanceException.__init__/ s5
&--66
?
r r r s @r r r * sB
r r c e Zd ZdZd Zd Zd Zd Zed Z ed Z
ed Zed Zd
S )
ExtensionInfozhttps://pypi.python.org/pypic B t j | j | _ d S N) xmlrpclibServerProxyurl_rpc)r s r r zExtensionInfo.__init__= s )$(33 r c | j | |i |S # t j t f$ r!}t t
| d }~wt j $ rD}|j t j k rt t t
| d }~wt j
$ r}t |j d }~wt j $ r}t |j d }~ww xY wr! )r% __getattr__socketgaierrorr r strr"
ProtocolErrorerrcodehttplibSERVICE_UNAVAILABLEr FaultfaultStringsslSSLErrorstrerror)r methodargskwargserrs r __get_rpczExtensionInfo.__get_rpc@ s 0049((00$A&AAA, , , ,!#c((+++&