k;,f d Z ddlZddlmZmZmZmZmZ ddl m Z mZ ddlm Z mZ ddlmZ ddlmZ ddlmZmZmZmZmZ dd lmZ ee Zeeeef Z ddlan;# e $ r daY n2e!$ r+Z"e# d ee" daY dZ"["ndZ"["ww xY wdee dee d ee fdZ$ G d de Z%dS )zNetwork Authentication Helpers Contains interface (MultiDomainBasicAuth) and associated glue code for providing credentials in the context of network requests. N)AnyDictListOptionalTuple)AuthBase HTTPBasicAuth)RequestResponse)get_netrc_auth) getLogger)ask ask_inputask_passwordremove_auth_from_urlsplit_auth_netloc_from_url)AuthInfo*Keyring is skipped due to an exception: %surlusernamereturnc | rt sdS t j }t d| || | }||j |j fS dS # t $ r Y nw xY w|r6t d| t j | | }|r||fS nA# t $ r4}t dt | da Y d}~nd}~ww xY wdS )z3Return the tuple auth for a given url from keyring.Nz'Getting credentials from keyring for %sz$Getting password from keyring for %sr )keyringget_credentialloggerdebugr passwordAttributeErrorget_password Exceptionwarningstr)r r r credr excs /builddir/build/BUILDROOT/alt-python311-pip-21.3.1-4.el9.x86_64/opt/alt/python311/lib/python3.11/site-packages/pip/_internal/network/auth.pyget_keyring_authr&