403Webshell
Server IP : 121.121.20.254  /  Your IP : 216.73.216.202
Web Server : Microsoft-IIS/10.0
System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64
User : IUSR ( 0)
PHP Version : 8.3.28
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/Python313/Lib/site-packages/pip/_internal/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : C:/Python313/Lib/site-packages/pip/_internal/__pycache__/configuration.cpython-313.pyc
�

��i�8����SrSSKJr SSKrSSKrSSKrSSKrSSKJr SSK	J
r
Jr SSKJ
r
Jr SSKJr SSKJr SS	KJr SS
KJrJr \R0r\"S\5r\(aSOS
rSr\"SSSSSS9r\R<\R>\R@\RB\RD4r#\R>\R<\R@4r$\"\%5r&SSjr'SSjr(SSjr)"SS5r*g)aConfiguration management setup

Some terminology:
- name
  As written in config files.
- value
  Value associated with a name
- key
  Name combined with it's section (section.name)
- variant
  A single word describing where the configuration key-value pair came from
�)�annotationsN)�Iterable)�Any�NewType)�ConfigurationError�!ConfigurationFileCouldNotBeLoaded)�appdirs)�WINDOWS)�	getLogger)�
ensure_dir�enum�Kindzpip.inizpip.conf)�version�help�user�global�site�envzenv-var)�USER�GLOBAL�SITE�ENV�ENV_VARc�h�UR5RSS5nURS5nU$)zAMake a name consistent regardless of source (environment or file)�_�-z--)�lower�replace�removeprefix)�names �=C:\Python313\Lib\site-packages\pip/_internal/configuration.py�_normalize_namer"5s/���:�:�<����S�)�D����T�"�D��K�c�T�SU;aSUS3n[U5eURSS5$)N�.zVKey does not contain dot separated section and key. Perhaps you wanted to use 'global.z
' instead?�)r�split)r �
error_messages  r!�_disassemble_keyr)<s>��
�$��
1�15��j�
B�	�!��/�/��:�:�c�1��r#c�v�[R"S5Vs/sH'n[RR	U[
5PM) nn[RR	[R[
5n[RR	[RRS5[(aSOS[
5n[RR	[R"S5[
5n[RU[RU/[RX4/0$s snf)N�pip�~z.pip)r	�site_config_dirs�os�path�join�CONFIG_BASENAME�sys�prefix�
expanduserr
�user_config_dir�kindsrrr)r/�global_config_files�site_config_file�legacy_config_file�new_config_files     r!�get_configuration_filesr;Fs���8?�8P�8P�QV�8W��8W�������T�?�+�8W����w�w�|�|�C�J�J��@�������
�����3�����f����
�g�g�l�l�7�#:�#:�5�#A�?�S�O�
���)�
�
�
�%�&�
�
�
�'�9����s�.D6c�^�\rSrSrSrSSU4SjjjrSSjrSSjrSSjrSSjr	SSjr
S S	jrSS
jrSSjr
\S!Sj5rSS
jrS"SjrS#SjrSSjrS$SjrS%SjrS&SjrS'SjrS(SjrS)SjrS*SjrSrU=r$)+�
Configuration�Ya�Handles management of configuration.

Provides an interface to accessing and managing configuration files.

This class converts provides an API that takes "section.key-name" style
keys and stores the value associated with it as "key-name" under the
section "section".

This allows for a clean interface wherein the both the section and the
key-name are preserved in an easy to manage form in the configuration files
and the data stored is also nice.
c
�\>�[TU]5 UbEU[;a;[SR	SR[
[[5555eXlX l	[Vs0sHo3/_M snUl[Vs0sHo30_M snUl/Ul
gs snfs snf)Nz5Got invalid value for load_only - should be one of {}z, )�super�__init__�VALID_LOAD_ONLYr�formatr0�map�repr�isolated�	load_only�OVERRIDE_ORDER�_parsers�_config�_modified_parsers)�selfrFrG�variant�	__class__s    �r!rA�Configuration.__init__gs����
����� �Y�o�%E�$�G�N�N��I�I�c�$��8�9���
�
!�
�"��(6�H
�'5�G�R�K�~�H
��
�(6�?
�'5�G�R�K�~�?
���EG����
H
��?
s�,B$�B)c�h�UR5 UR(dUR5 gg)z<Loads configuration from configuration files and environmentN)�_load_config_filesrF�_load_environment_vars�rLs r!�load�Configuration.load|s&�����!��}�}��'�'�)�r#c�r�URcS5eUR5S$![a gf=f)z7Returns the file with highest priority in configurationNz)Need to be specified a file to be editingr)rG�_get_parser_to_modify�
IndexErrorrSs r!�get_file_to_edit�Configuration.get_file_to_edit�sC���~�~�)�V�+V�V�)�	��-�-�/��2�2���	��	�s�)�
6�6c�6�URR5$)zPReturns key-value pairs like dict.items() representing the loaded
configuration
)�_dictionary�itemsrSs r!r]�Configuration.items�s�����%�%�'�'r#c���Un[U5n0nURR5HnURU5 M X1$![a [U5 [
SU35ef=f)z#Get a value from the configuration.�No such key - )r"r\�values�update�KeyErrorr)r)rL�key�orig_key�clean_config�file_valuess     r!�	get_value�Configuration.get_value�sy�����c�"��		B�+-�L�#�/�/�6�6�8���#�#�K�0� 9��$�$���	B�
�S�!�$�~�h�Z�%@�A�A�		B�s�7A�$A+c���[U5nUR5 UR(deUR5up4UbF[	U5upVURU5(dUR
U5 URXVU5 URURRU05 X RURUU'URX45 g)z$Modify a value in the configuration.N)r"�_ensure_have_load_onlyrGrWr)�has_section�add_section�setrJ�
setdefault�_mark_as_modified)rLrd�value�fname�parser�sectionr s       r!�	set_value�Configuration.set_value�s����c�"���#�#�%��~�~��~��2�2�4�
����,�S�1�M�G��%�%�g�.�.��"�"�7�+��J�J�w�e�,����T�^�^�$�/�/��r�:�38���T�^�^�$�U�+�C�0����u�-r#c��Un[U5nUR5 UR(deUR5up4XRURU;a*XRUR;a[SU35eUb|[
U5upVURU5(aURXV5(d[S5eURU5(dURU5 URX45 URURUU	g![a URURU	gf=f)z#Unset a value in the configuration.r`Nz4Fatal Internal error [id=1]. Please report as a bug.)
r"rkrGrWrJrr)rl�
remove_optionr]�remove_sectionrprc)rLrdrerrrsrtr s       r!�unset_value�Configuration.unset_value�s-�����c�"���#�#�%��~�~��~��2�2�4�
��
�|�|�D�N�N�3�E�:�:��<�<����7�7�$�~�h�Z�%@�A�A���,�S�1�M�G��"�"�7�+�+��0D�0D�W�0S�0S�)�J���
�<�<��(�(��%�%�g�.��"�"�5�1�	2����T�^�^�,�U�3�C�8���	2����T�^�^�,�S�1�	2�s�D*�*$E�Ec��UR5 URHjup[RSU5 [	[
RRU55 [US5nURU5 SSS5 Ml g!,(df   M~=f![an[SUSU35eSnAff=f)z!Save the current in-memory state.z
Writing to %s�wNz:An error occurred while writing to the configuration file z: )rkrK�logger�inforr.r/�dirname�open�write�OSErrorr)rLrrrs�f�errors     r!�save�Configuration.save�s����#�#�%�!�3�3�M�E��K�K���/�
�r�w�w���u�-�.�
��%��%���L�L��O�&�%�4�&�%���
�(�P��g�R��w�(����
�s6�!B�-B�?B�
B	�B�B�
B>�(B9�9B>c�t�URc[S5e[RSUR5 g)Nz'Needed a specific file to be modifying.z$Will be working with %s variant only)rGrr~�debugrSs r!rk�$Configuration._ensure_have_load_only�s+���>�>�!�$�%N�O�O����;�T�^�^�Lr#c�`�0n[H!nURURU5 M# U$)z3A dictionary representing the loaded configuration.)rHrbrJ)rL�retvalrMs   r!r\�Configuration._dictionary�s/��
��%�G��M�M�$�,�,�w�/�0�&��
r#c��[UR55nU[RSS[R
/:Xa[RS5 gUR5Hrup#UHgnURb'X R:wa[RSXB5 M7URX$5nURURXE45 Mi Mt g)z,Loads configuration from configuration filesrr&zZSkipping loading configuration files due to environment's PIP_CONFIG_FILE being os.devnullNz Skipping file '%s' (variant: %s))
�dict�iter_config_filesr6rr.�devnullr~r�r]rG�
_load_filerI�append)rL�config_filesrM�filesrrrss      r!rQ� Configuration._load_config_files�s����D�2�2�4�5����	�	�"�1�Q�'�B�J�J�<�7��L�L�A�
�
�*�0�0�2�N�G����>�>�-�'�^�^�2K��L�L�!C�U�T������8���
�
�g�&�-�-�u�o�>��3r#c�B�[RSX5 URU5nUR5HcnUR	U5nUR
UR
U05 UR
UURURXE55 Me U$)Nz'For variant '%s', will try loading '%s')	r~�verbose�_construct_parser�sectionsr]rJrorb�_normalized_keys)rLrMrrrsrtr]s      r!r��Configuration._load_files������@�'�Q��'�'��.�����(�G��L�L��)�E��L�L��!�,�,�U�B�7��L�L��!�%�(�/�/��0E�0E�g�0U�V�)�
�
r#c�@�[R"5n[RR	U5(a([
R"S5nURXS9 U$U$![a [SUS3US9e[Ran[US9eSnAff=f)NF)�encodingzcontains invalid z characters)�reasonrr)r�)�configparser�RawConfigParserr.r/�exists�locale�getpreferredencoding�read�UnicodeDecodeErrorr�Error)rLrrrs�locale_encodingr�s     r!r��Configuration._construct_parser!s����-�-�/��
�7�7�>�>�%� � �$�9�9�%�@�O�

E����E��<��
�v�
��&�
�7�.��.?�{�K���� �%�%�
E�7�e�D�D��
E�s�A$�$+B�	B�Bc��UR[RRS05 UR[RSR	URSUR
555 g)z.Loads configuration from environment variablesz:env:N)rJr6rrorbr��get_environ_varsrSs r!rR�$Configuration._load_environment_vars6sX�����U�]�]�#�.�.�w��;����U�]�]�#�G�,�3�3��!�!�'�4�+@�+@�+B�C�	
r#c�J�0nUHupEUS-[U5-nXSU'M U$)z�Normalizes items to construct a dictionary with normalized keys.

This routine is where the names become keys and are made the same
regardless of source - configuration files or environment.
r%)r")rLrtr]�
normalizedr �valrds       r!r��Configuration._normalized_keys=s7���
��I�D��C�-�/�$�"7�7�C�!�s�O���r#c#��# �[RR5HAupURS5(dMUSSR	5nU[
;dM<X24v� MC g7f)z@Returns a generator with all environmental vars with prefix PIP_�PIP_�N)r.�environr]�
startswithr�ENV_NAMES_IGNORED)rLrdr�r s    r!r��Configuration.get_environ_varsKsN����
�
�(�(�*�H�C��~�~�f�%�%��1�2�w�}�}����0�0��)�O�	+�s�8A'�A'�
A'c#�0# �[RRSS5n[5n[R
U[R
4v� UR(+=(a- U=(a [RRU5(+nU(a%[RU[R4v� [RU[R4v� Ub[RU/4v� g[R/4v� g7f)a`Yields variant and configuration files associated with it.

This should be treated like items of a dictionary. The order
here doesn't affect what gets overridden. That is controlled
by OVERRIDE_ORDER. However this does control the order they are
displayed to the user. It's probably most ergonomic to display
things in the same order as OVERRIDE_ORDER
�PIP_CONFIG_FILEN)r.r��getr;r6rrFr/r�rrr)rL�env_config_filer��should_load_user_configs    r!r��Configuration.iter_config_filesTs�����*�*�.�.�):�D�A��.�0���l�l�L����6�6�6�'+�m�m�"3�#
��?������� ?�9
��#��*�*�l�5�:�:�6�6�6��j�j�,�u�z�z�2�2�2��&��)�)�o�.�.�.��)�)�R�-��s�DDc� �URU$)z#Get values present in a config file)rJ)rLrMs  r!�get_values_in_config�"Configuration.get_values_in_configts���|�|�G�$�$r#c��UR(deURURnU(d[S5eUS$)Nz4Fatal Internal error [id=2]. Please report as a bug.���)rGrIr)rL�parserss  r!rW�#Configuration._get_parser_to_modifyxs?���~�~��~��-�-����/���$�F��
�
�r�{�r#c�`�X4nX0R;aURRU5 gg�N)rKr�)rLrrrs�file_parser_tuples    r!rp�Configuration._mark_as_modified�s0��"�O���$:�$:�:��"�"�)�)�*;�<�;r#c�P�URRSUR<S3$)N�(�))rN�__name__r\rSs r!�__repr__�Configuration.__repr__�s'���.�.�)�)�*�!�D�,<�,<�+?�q�A�Ar#)rJrKrIrFrGr�)rF�boolrGzKind | None�return�None)r�r�)r�z
str | None)r��Iterable[tuple[str, Any]])rd�strr�r)rdr�rqrr�r�)rdr�r�r�)r�zdict[str, dict[str, Any]])rMrrrr�r�r�)rrr�r�r�)rtr�r]r�r��dict[str, Any])r�zIterable[tuple[str, str]])r�z Iterable[tuple[Kind, list[str]]])rMrr�r�)r�ztuple[str, RawConfigParser])rrr�rsr�r�r�)r�r�)r��
__module__�__qualname__�__firstlineno__�__doc__rArTrYr]rhrurzr�rk�propertyr\rQr�r�rRr�r�r�r�rWrpr��__static_attributes__�
__classcell__)rNs@r!r=r=Ys�����G�G�**��(�
B�.�( 2�D�0M�
�	��	�?�.	��*
����#<��	��$� �@%��=�
B�Br#r=)r r�r�r�)r r�r�z	list[str])r�zdict[Kind, list[str]])+r��
__future__rr�r�r.r2�collections.abcr�typingrr�pip._internal.exceptionsrr�pip._internal.utilsr	�pip._internal.utils.compatr
�pip._internal.utils.loggingr�pip._internal.utils.miscrr
r�r�rr1r�r6rrrrrrHrBr�r~r"r)r;r=�r#r!�<module>r�s����#��
�	�
�$���(�.�1�5��.�.���v�s���&�)�J��%��	
�	��	�
��	�����u�z�z�5�:�:�u�y�y�%�-�-�O���*�*�e�l�l�E�J�J�6��	�8�	�����&sB�sBr#

Youez - 2016 - github.com/yon3zu
LinuXploit