| Server IP : 162.19.112.25 / Your IP : 216.73.216.88 Web Server : LiteSpeed System : Linux qamar.tasjeel.ae 5.14.0-611.55.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 19 15:19:29 EDT 2026 x86_64 User : archiart ( 1428) PHP Version : 8.2.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/python36/lib/python3.6/site-packages/pip/_internal/network/__pycache__/ |
Upload File : |
3 ��Re�- � @ s( d Z ddlZddlmZmZ ddlmZ ddlmZ ddl mZmZm Z mZmZ ddlmZ er�ddlmZmZmZmZmZ dd lmZ dd lmZmZ eeeef Zeje �Z!yddl"a"W nN e#k r� da"Y n8 e$k �r Z% ze!j&dee%�� da"W Y ddZ%[%X nX dd � Z'G dd� de�Z(dS )z�Network Authentication Helpers Contains interface (MultiDomainBasicAuth) and associated glue code for providing credentials in the context of network requests. � N)�AuthBase� HTTPBasicAuth)�get_netrc_auth)�parse)�ask� ask_input�ask_password�remove_auth_from_url�split_auth_netloc_from_url)�MYPY_CHECK_RUNNING)�Dict�Optional�Tuple�List�Any)�AuthInfo)�Response�Requestz*Keyring is skipped due to an exception: %sc C s� | st rdS yzy t j}W n tk r0 Y n0X tjd| � || |�}|dk r\|j|jfS dS |r�tjd| � t j| |�}|r�||fS W n6 tk r� } ztj dt |�� da W Y dd}~X nX dS )z3Return the tuple auth for a given url from keyring.Nz'Getting credentials from keyring for %sz$Getting password from keyring for %sz*Keyring is skipped due to an exception: %s)�keyring�get_credential�AttributeError�logger�debug�username�password�get_password� Exception�warning�str)�urlr r �credr �exc� r"