403Webshell
Server IP : 217.160.0.212  /  Your IP : 216.73.216.6
Web Server : Apache
System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User : u119869361 ( 9600978)
PHP Version : 8.4.28
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /kunden/lib/python3/dist-packages/pip/_internal/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /kunden/lib/python3/dist-packages/pip/_internal/__pycache__/configuration.cpython-313.pyc
�

�h�6���SrSSKrSSKrSSKrSSKrSSKJrJrJrJ	r	J
r
JrJr SSK
JrJr SSKJr SSKJr SSKJr SSKJrJr \R2r\
"S	\5r\(aS
OSrSr\"S
SSSSS9r\R>\R@\RB\RD\RF4r$\R@\R>\RB4r%\"\&5r'S\S\4Sjr(S\S\	\4Sjr)S\\\	\44Sjr*"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
�N)�Any�Dict�Iterable�List�NewType�Optional�Tuple)�ConfigurationError�!ConfigurationFileCouldNotBeLoaded)�appdirs)�WINDOWS)�	getLogger)�
ensure_dir�enum�Kindzpip.inizpip.conf)�version�help�user�global�site�envzenv-var)�USER�GLOBAL�SITE�ENV�ENV_VAR�name�returnc�|�UR5RSS5nURS5(aUSSnU$)zAMake a name consistent regardless of source (environment or file)�_�-z--�N)�lower�replace�
startswith)rs �=/usr/lib/python3/dist-packages/pip/_internal/configuration.py�_normalize_namer'2s9���:�:�<����S�)�D����t����A�B�x���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)r4�global_config_files�site_config_file�legacy_config_file�new_config_files     r&�get_configuration_filesr@Ds���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�^�\rSrSrSrS$S\S\\SS4U4SjjjrS%Sjr	S\\
4S	jrS\\
\
\44S
jrS\
S\4SjrS\
S
\SS4SjrS\
SS4SjrS%SjrS%Sjr\S\\
\44Sj5rS%SjrS\S\
S\4SjrS\
S\4SjrS%SjrS\
S\\
\
\4S\\
\44SjrS\\
\
\
44SjrS\\
\\\
44Sjr S\S\\
\44Sjr!S\
\
\44Sjr"S\
S \SS4S!jr#S\
4S"jr$S#r%U=r&$)&�
Configuration�Wa�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.
N�isolated�	load_onlyrc
�\>�[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
�formatr5�map�reprrDrE�OVERRIDE_ORDER�_parsers�_config�_modified_parsers)�selfrDrE�variant�	__class__s    �r&rH�Configuration.__init__es����
����� �Y�o�%E�$�G�N�N��I�I�c�$��8�9���
�
!�
�"��(6�H
�'5�G�R�K�~�H
��
�(6�4
�'5�G�R�K�~�4
���EG����
H
��4
s�,B$�B)c�h�UR5 UR(dUR5 gg)z<Loads configuration from configuration files and environmentN)�_load_config_filesrD�_load_environment_vars�rQs r&�load�Configuration.loadzs&�����!��}�}��'�'�)�r(c�r�URcS5eUR5S$![a gf=f)z7Returns the file with highest priority in configurationNz)Need to be specified a file to be editingr)rE�_get_parser_to_modify�
IndexErrorrXs 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�itemsrXs r&rb�Configuration.items�s�����%�%�'�'r(�keyc��Un[U5nURU$![a [U5 [	SU35ef=f)z#Get a value from the configuration.�No such key - )r'ra�KeyErrorr.r
)rQrd�orig_keys   r&�	get_value�Configuration.get_value�sU�����c�"��	B��#�#�C�(�(���	B�
�S�!�$�~�h�Z�%@�A�A�		B�s	��$A�valuec�n�[U5nUR5 UR(deUR5up4UbF[	U5upVURU5(dUR
U5 URXVU5 X RURU'URX45 g)z$Modify a value in the configuration.N)
r'�_ensure_have_load_onlyrEr\r.�has_section�add_section�setrO�_mark_as_modified)rQrdrk�fname�parser�sectionrs       r&�	set_value�Configuration.set_value�s����c�"���#�#�%��~�~��~��2�2�4�
����,�S�1�M�G��%�%�g�.�.��"�"�7�+��J�J�w�e�,�,1���T�^�^�$�S�)����u�-r(c��Un[U5nUR5 UR(deXRUR;a[	SU35eUR5up4Ub|[
U5upVURU5(aURXV5(d[	S5eURU5(dURU5 URX45 URURU	g)z#Unset a value in the configuration.rfNz4Fatal Internal error [id=1]. Please report as a bug.)r'rmrErOr
r\r.rn�
remove_optionrb�remove_sectionrq)rQrdrhrrrsrtrs       r&�unset_value�Configuration.unset_value�s������c�"���#�#�%��~�~��~��l�l�4�>�>�2�2�$�~�h�Z�%@�A�A��2�2�4�
����,�S�1�M�G��"�"�7�+�+��0D�0D�W�0S�0S�)�J���
�<�<��(�(��%�%�g�.��"�"�5�1��L�L����(��-r(c��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: )rmrP�logger�inforr3r4�dirname�open�write�OSErrorr
)rQrrrs�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)rEr
r~�debugrXs r&rm�$Configuration._ensure_have_load_only�s+���>�>�!�$�%N�O�O����;�T�^�^�Lr(c�`�0n[H!nURURU5 M# U$)z3A dictionary representing the loaded configuration.)rM�updaterO)rQ�retvalrRs   r&ra�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_filesr;rr3�devnullr~r�rbrE�
_load_filerN�append)rQ�config_filesrR�filesrrrss      r&rV� 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(rRrrc��[RSX5 URU5nUR5HAnUR	U5nUR
UR
URXE55 MC U$)Nz'For variant '%s', will try loading '%s')r~�verbose�_construct_parser�sectionsrbrOr��_normalized_keys)rQrRrrrsrtrbs      r&r��Configuration._load_filesi�����@�'�Q��'�'��.�����(�G��L�L��)�E��L�L��!�(�(��)>�)>�w�)N�O�)��
r(c�@�[R"5n[RR	U5(a([
R"S5nURXS9 U$U$![a [SUS3US9e[Ran[US9eSnAff=f)NF)�encodingzcontains invalid z characters)�reasonrr)r�)�configparser�RawConfigParserr3r4�exists�locale�getpreferredencoding�read�UnicodeDecodeErrorr�Error)rQrrrs�locale_encodingr�s     r&r��Configuration._construct_parsers����-�-�/��
�7�7�>�>�%� � �$�9�9�%�@�O�

E����E��<��
�v�
��&�
�7�.��.?�{�K���� �%�%�
E�7�e�D�D��
E�s�A$�$+B�	B�Bc��UR[RRUR	SUR555 g)z.Loads configuration from environment variablesz:env:N)rOr;rr�r��get_environ_varsrXs r&rW�$Configuration._load_environment_vars*s6�����U�]�]�#�*�*��!�!�'�4�+@�+@�+B�C�	
r(rtrbc�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')rQrtrb�
normalizedr�valrds       r&r��Configuration._normalized_keys0s7���
��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)r3�environrbr%r#�ENV_NAMES_IGNORED)rQrdr�rs    r&r��Configuration.get_environ_vars>sN����
�
�(�(�*�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)r3r��getr@r;rrDr4r�rrr)rQ�env_config_filer��should_load_user_configs    r&r��Configuration.iter_config_filesGs�����*�*�.�.�):�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)rO)rQrRs  r&�get_values_in_config�"Configuration.get_values_in_configgs���|�|�G�$�$r(c��UR(deURURnU(d[S5eUS$)Nz4Fatal Internal error [id=2]. Please report as a bug.���)rErNr
)rQ�parserss  r&r\�#Configuration._get_parser_to_modifyks?���~�~��~��-�-����/���$�F��
�
�r�{�r(rsc�`�X4nX0R;aURRU5 gg�N)rPr�)rQrrrs�file_parser_tuples    r&rq�Configuration._mark_as_modifiedys0��"�O���$:�$:�:��"�"�)�)�*;�<�;r(c�P�URRSUR<S3$)N�(�))rS�__name__rarXs r&�__repr__�Configuration.__repr__~s'���.�.�)�)�*�!�D�,<�,<�+?�q�A�Ar()rOrPrNrDrEr�)rN)'r��
__module__�__qualname__�__firstlineno__�__doc__�boolrrrHrY�strr^rr	rrbrirurzr�rm�propertyrrarVr�r�r�rWr�r�rr�r�r\rqr��__static_attributes__�
__classcell__)rSs@r&rBrBWs�����G��G�(�4�.�G�D�G�G�**��(�3�-��(�x��c�3�h��0�(�
B�S�
B�S�
B�.�S�.��.��.�&.�s�.�t�.�:�0M�
�	�T�#�s�(�^�	��	�?�.�$��s�����s����*
����#+�E�#�s�(�O�#<��	
�c�3�h���$�(�5��c��?�";�$� �8�E�$��S�	�/�,B�#C� �@%�D�%�T�#�s�(�^�%��u�S�/�-A�'B��=�s�=�O�=��=�
B�#�B�Br(rB),r�r�r�r3r7�typingrrrrrrr	�pip._internal.exceptionsr
r�pip._internal.utilsr�pip._internal.utils.compatr
�pip._internal.utils.loggingr�pip._internal.utils.miscrrr�r�rr6r�r;rrrrrrMrIr�r~r'r.r@rB�r(r&�<module>r�s����
�	�
�F�F�F��(�.�1�5��.�.���v�s���&�)�J��%��	
�	��	�
��	�����u�z�z�5�:�:�u�y�y�%�-�-�O���*�*�e�l�l�E�J�J�6��	�8�	���#��#���3��4��9����d�D��I�o�!6��&hB�hBr(

Youez - 2016 - github.com/yon3zu
LinuXploit