AlkantarClanX12

Your IP : 18.116.85.102


Current Path : /proc/self/root/opt/alt/python39/lib64/python3.9/__pycache__/
Upload File :
Current File : //proc/self/root/opt/alt/python39/lib64/python3.9/__pycache__/platform.cpython-39.opt-2.pyc

a

R�f���@s�dZdZddlZddlZddlZddlZddlZddlZddlZddddddddd	d	d
�
Z	e�
d�Zdd
�Ze�
dej
�Zd|dd�Zd}dd�Ze�
d�Zd~dd�Zdddddddd d!d"d#d$�Zdd%d&d'd(d)d*�Zd+d,�Zd-d.�Zdd/d0�Zd1d2�Zd�d4d5�Zd6d7�Zd�d8d9�Zd:d;�Zd<d=�Zd�d>d?�Zd@dA�Zd�dBdC�Z dDdEdFd�Z!ej"ddfdGdH�Z#dIdJ�Z$GdKdL�dL�Z%dMdN�Z&GdOdP�dPe�'dQdR��Z(da)dSdT�Z*dUdV�Z+dWdX�Z,dYdZ�Z-d[d\�Z.d]d^�Z/d_d`�Z0e�
daej
�Z1e�
dbej
�Z2e�
dc�Z3e�
dd�Z4iZ5d�dedf�Z6dgdh�Z7didj�Z8dkdl�Z9dmdn�Z:dodp�Z;dqdr�Z<dsdt�Z=iZ>d�dudv�Z?e@dwk�r�dxejAv�pldyejAvZBdzejAv�o�d{ejAvZCeDe?eCeB��e�Ed�dS)�a
    Copyright (c) 1999-2000, Marc-Andre Lemburg; mailto:mal@lemburg.com
    Copyright (c) 2000-2010, eGenix.com Software GmbH; mailto:info@egenix.com

    Permission to use, copy, modify, and distribute this software and its
    documentation for any purpose and without fee or royalty is hereby granted,
    provided that the above copyright notice appear in all copies and that
    both that copyright notice and this permission notice appear in
    supporting documentation or portions thereof, including modifications,
    that you make.

    EGENIX.COM SOFTWARE GMBH DISCLAIMS ALL WARRANTIES WITH REGARD TO
    THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
    FITNESS, IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL,
    INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
    FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
    NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
    WITH THE USE OR PERFORMANCE OF THIS SOFTWARE !

z1.0.8�N�
���(�2��)
ZdevZalpha�aZbeta�b�cZRCZrc�pl�pz([0-9]+|[._+-])c	Cs`g}t�|�D]L}|dvrzt|d�}d}WntyJt�|d�}Yn0|�||f�q|S)Nz._+-r�dr)�
_component_re�split�int�
ValueError�_ver_stages�get�extend)�version�result�v�t�r�-/opt/alt/python39/lib64/python3.9/platform.py�_comparable_version�s
rsC(__libc_init)|(GLIBC_([0-9.]+))|(libc(_\w+)?\.so(?:\.(\d[0-9.]*))?)��@c
Cs|durXz0t�d�}|jdd�}t|�dkr6t|�WSWntttfyPYn0tj	}t
}ttjd�rttj�
|�}t|d���j}|�|�}d}	|	t|�k�r�d|vs�d	|vr�t�||	�}
nd}
|
r�|
��t|�k�r|�|�}|�r
|t|	t|�d
�d�|}d}	q�|
�s�q�dd�|
��D�\}}
}}}}|�rD|�sDd
}n�|
�rv|dk�r^d}|}n||�||�k�r�|}n\|�r�|dk�r�d
}|�r�|�r�||�||�k�r�|}|�r�|t|�d�|k�r�||}|
��}	q�Wd�n1�s�0Y||fS)N�CS_GNU_LIBC_VERSION�)�maxsplit��realpath�rbrslibcsGLIBCi�cSs"g|]}|dur|�d�n|�qS)N�latin1)�decode)�.0�srrr�
<listcomp>�s�zlibc_ver.<locals>.<listcomp>Zlibc�glibc)�os�confstrr�len�tuple�AttributeErrorr�OSError�sys�
executabler�hasattr�pathr"�open�read�_libc_search�search�end�max�groups)r1�librZ	chunksize�ver�parts�V�fZbinary�pos�m�chunkZlibcinitr)ZglibcversionZsoZthreadsZ	soversionrrr�libc_ver�s^


�

*rCcCs^|�d�}|r|�|�zttttt|���}WntyF|}Yn0d�|dd��}|S)N�.�)r�append�list�map�strrr�join)r�build�lZstringsrrr�
_norm_version�s


rMz'(?:([\w ]+) ([\w.]+) .*\[.* ([\d.]+)\])��win32�win16�dosc	Cs�tj|vr|||fSddl}dD]\}z|j||j|jddd�}Wn6t|jfyv}zWYd}~q WYd}~q d}~00q�q |||fS|��}t�	|�}|dur�|�
�\}}}|ddkr�|dd�}|ddkr�|dd�}t|�}|||fS)Nr)r<zcommand /c verz
cmd /c verT)�stdin�stderr�text�shell���rD)r0�platform�
subprocess�check_output�DEVNULLr/�CalledProcessError�strip�_ver_output�matchr:rM)	�system�releaserZsupported_platformsrX�cmd�infoZwhyrArrr�_syscmd_vers2

�
"

rcZ2000ZXPZ
2003ServerZpost2003�Vista�7�8z8.1zpost8.1Z10Zpost10))�r)rgr�rgr!)rgN��r�rjr�rjr!�rjrE�rjN)rr)rNZ
2008ServerZ2008ServerR2Z
2012ServerZ2012ServerR2Zpost2012ServerR2)rhrirkrlrmrncCs
t�dvS)N)ZIoTUAPZ
NanoServerZWindowsCoreHeadlessZ	IoTEdgeOS)�
win32_editionrrrr�win32_is_iotSsrpcCs�z,zddl}Wnty(ddl}Yn0Wnty>Yn^0zHd}|�|j|��"}|�|d�dWd�WS1s|0YWnty�Yn0dS)Nr�,SOFTWARE\Microsoft\Windows NT\CurrentVersionZ	EditionId)�winreg�ImportError�_winreg�	OpenKeyEx�HKEY_LOCAL_MACHINE�QueryValueExr/)rr�cvkey�keyrrrroVs4rocCs�zddlm}Wnty.||||fYS0|�}z ttt�d�d��\}}}Wn*ty�|jpt|dd�\}}}Yn0d�	|||�}t
�||f�p�t
�|df�p�|}|dd�||fk�rzd�	|j�}Wn6t
�y|dd�d	k�rd
|dd�}Yn0t|dd�dk�rDt�||f��pBt�|df��pB|}z.zddl}	Wnt�ynddl}	Yn0Wnt�y�Yn`0zHd}
|	�|	j|
�� }|	�|d
�d}Wd�n1�s�0YWnt�y�Yn0||||fS)Nr)�getwindowsversionr!rDrEz{0}.{1}.{2}zSP{}�
z
Service Pack ZSPZproduct_typerqZCurrentType)r0rzrsrHrrcrrZplatform_version�format�_WIN32_CLIENT_RELEASESrZservice_pack_majorr.�getattr�_WIN32_SERVER_RELEASESrrrtrurvrwr/)r`r�csd�ptyperzZwinver�major�minorrKrrrxryrrr�	win32_verhsR ����4r�cCs�d}tj�|�sdSzddl}Wnty4YdS0t|d��}|�|�}Wd�n1s`0Y|d}d}t��j}|dvr�d}|||fS)Nz0/System/Library/CoreServices/SystemVersion.plistrr#ZProductVersion�rrr)ZppczPower MacintoshZPowerPC)	r*r3�exists�plistlibrsr4�load�uname�machine)�fnr�r?rr`�versioninfor�rrr�_mac_ver_xml�s(
r�r�cCst�}|dur|S|||fS�N)r�)r`r�r�rbrrr�mac_ver�sr�cCsFddlm}z|�|�}|dur&|WS|WSty@|YS0dS)Nr)�System)�	java.langr�ZgetPropertyr.)�name�defaultr��valuerrr�
_java_getprop�s
r�cCs�zddl}Wnty*||||fYS0td|�}td|�}|\}}}td|�}td|�}td|�}|||f}|\}}	}
td|
�}
td|�}td	|	�}	||	|
f}||||fS)
Nrzjava.vendorzjava.versionzjava.vm.namezjava.vm.vendorzjava.vm.versionzjava.os.archzjava.os.namezjava.os.version)r�rsr�)r`�vendor�vminfo�osinfo�javaZvm_nameZ
vm_releaseZ	vm_vendor�os_name�
os_version�os_archrrr�java_ver�s"












r�cCs�|dkr~|dkr|||fS|�d�}|rjzt|d�}WntyJYn 0|d}t|�|d<d�|�}|dkrxd}q�d}n,|dkr�d	}|r�|d
}q�d}n|dvr�d
}|||fS)NZSunOS�5rDrrE�6ZSolarisZIRIX64ZIRIXz (64bit)�64bit�rOrP�Windows)rrrrIrJ)r_r`rrLr�rrr�system_alias�s.	



r�cGs�d�dd�tt|�D��}|�dd�}|�dd�}|�dd�}|�dd�}|�d	d�}|�d
d�}|�dd�}|�dd�}|�d
d�}|�dd�}||kr�q�|}q�|ddkr�|dd�}q�|S)N�-css|]}|��VqdSr�)r\)r&�xrrr�	<genexpr>,�z_platform.<locals>.<genexpr>� �_�/�\�:�;�"�(�)�unknownrz--rV)rJ�filterr,�replace)�argsrWZcleanedrrr�	_platform&s"r�cCsJzddl}Wnty"|YS0z
|��WStyD|YS0dS�Nr)�socketrsZgethostnamer/)r�r�rrr�_nodeFs

r�cCsBtj�|�}tj�|�r>tj�tj�tj�|�t�|���}q|Sr�)r*r3�abspath�islink�normpathrJ�dirname�readlink)�filepathrrr�_follow_symlinksUs�r�c	Csxtjdvr|Sddl}t|�}ttjdd�}z|jdd|g|j|d�}Wnt	|j
fyd|YS0|sn|S|�d�S)	N)rQrOrPr�C)�LC_ALL�filez-b)rS�envzlatin-1)r0rWrXr��dictr*�environrYrZr/r[r%)�targetr�rXr��outputrrr�_syscmd_fileas	
�

r�)r�	WindowsPE)rr�)r�MSDOScCs|s&ddl}|�d�}t|d�d}|r6t|d�}nd}|sx|tjkrxtjtvrpttj\}}|rh|}|rp|}||fSd|vr�d|vr�||fSd|vr�d	}nd
|vr�d}nd|vr�d
}d|vr�d}n8d|vr�d|vr�d}q�d}nd|vr�d}nd|vr�d}n||fS)Nr�P��bitrr1z
shared objectz32-bit�32bitZN32Zn32bitz64-bitr�ZELFZPEr�r�ZCOFFzMS-DOSr�)�structZcalcsizerIr�r0r1rW�_default_architecture)r1�bits�linkager��sizeZfileoutr	rLrrr�architecture�sH
�
r�cCstj�dd�ptj�dd�S)NZPROCESSOR_ARCHITEW6432rZPROCESSOR_ARCHITECTURE)r*r�rrrrr�_get_machine_win32�s�r�c@s0eZdZedd��Zdd�Zdd�Zdd�Zd	S)
�
_ProcessorcCs t|dtj��|j�}|�pdS)NZget_r)r~r0rW�from_subprocess)�cls�funcrrrr�sz_Processor.getcCstj�dt��S)NZPROCESSOR_IDENTIFIER)r*r�rr�rrrr�	get_win32�sz_Processor.get_win32cCsDzddl}WntyYn"0|�dd�\}}|dkr<dSdSdS)NrzSYI$_CPU�ZAlphaZVAX)�vms_librsZgetsyi)r�ZcsidZ
cpu_numberrrr�get_OpenVMS�sz_Processor.get_OpenVMSc	Cs:ztjddgtjdd���WSttjfy4Yn0dS)Nr�z-pT)rSrT)rXrYrZr\r/r[rrrrr��s�z_Processor.from_subprocessN)�__name__�
__module__�__qualname__�classmethodrr�r�r�rrrrr��s

	r�cCs|dkrdS|S)Nr�rr)�valrrr�_unknown_as_blanksr�csNeZdZejdd��Z�fdd�Zedd��Zdd�Z	d	d
�Z
dd�Z�ZS)
�uname_resultcCstt���Sr�)r�r�r��selfrrr�	processorszuname_result.processorcst�t���|jf�Sr�)�	itertools�chain�super�__iter__r�r���	__class__rrr�s�zuname_result.__iter__cCsLt|j�}|j|g|�R�}t|�|dkrHd|�dt|���}t|��|S)Nrz	Expected z arguments, got )r,�_fields�__new__�	TypeError)r��iterable�
num_fieldsr�msgrrr�_make"s
zuname_result._makecCst|�|Sr�)r-)r�ryrrr�__getitem__,szuname_result.__getitem__cCsttt|���Sr�)r,r-�iterr�rrr�__len__/szuname_result.__len__cCstt|�dt|j��fSr�)r�r-r,r�r�rrr�
__reduce__2szuname_result.__reduce__)
r�r�r��	functools�cached_propertyr�r�r�r�r�r�r��
__classcell__rrr�rr�s

	r�Zuname_result_basez#system node release version machinecCs�tdurtSzt��\}}}}}}Wn.tyTtj}t�}d}}}d}Yn0t|��s.|dkr�t�\}}}}|p~t	�}|r�|s�t
|�\}}}|dkr�d}n.|dkr�|dkr�d}d|dd�kr�d	}nd}|d
vr�|s�|dkr�d}nd}d}n8|dd
�dk�r.t�\}}}	}
d}d�|	�}|�s.|}|dk�rP|�rH|dk�rP|}d}|dk�rl|dk�rld}d	}|||||f}t
tt|��atS)NrrrOzMicrosoft Windowsr�Z	Microsoftz6.0rErdr�r�Z16bit�r��Javaz, ZOpenVMS�0)�_uname_cacher*r�r.r0rWr��anyr�r�rcr�rJr�rHr�)r_�noder`rr�Zinfosr�r�r�r�r�Zvalsrrrr�9sX




r�cCst�jSr�)r�r_rrrrr_�sr_cCst�jSr�)r�rrrrrr�srcCst�jSr�)r�r`rrrrr`�sr`cCst�jSr�)r�rrrrrr�srcCst�jSr�)r�r�rrrrr��sr�cCst�jSr�)r�r�rrrrr��s
r�zL([\w.+]+)\s*\(#?([^,]+)(?:,\s*([\w ]*)(?:,\s*([\w :]*))?)?\)\s*\[([^\]]+)\]?z;IronPython\s*([\d\.]+)(?: \(([\d\.]+)\))? on (.NET [\d\.]+)zU([\d.]+)\s*\(IronPython\s*[\d.]+\s*\(([\d.]+)\) on ([\w.]+ [\d.]+(?: \(\d+-bit\))?)\)zE([\w.+]+)\s*\(#?([^,]+),\s*([\w ]+),\s*([\w :]+)\)\s*\[PyPy [^\]]+\]?cCs|durtj}t�|d�}|dur&|Sd|vr�d}|�d�rHt�|�}n
t�|�}|durjtdt	|���|�
�\}}}d}d}n�tj�d�r�d}t�|�}|dur�tdt	|���|�
�\}}}}	}
|dur�d}tj}n�d|v�r"d}t
�|�}|du�rtdt	|���|�
�\}}}}	d}n\t�|�}|du�rFtd	t	|���|�
�\}}}}	}d
}|du�rld}n|	�r~|d|	}ttd��r�tj\}
}}n"ttd
��r�tj\}
}}nd}d}|�d�}
t|
�dk�r�|
�d�d�|
�}|||||||f}|t|<|S)NZ
IronPythonz*failed to parse IronPython sys.version: %srr�ZJythonz&failed to parse Jython sys.version: %sZPyPyz$failed to parse PyPy sys.version: %sz'failed to parse CPython sys.version: %sZCPythonr��_git�
_mercurialrDr!r�)r0r�_sys_version_cacher�
startswith�_ironpython_sys_version_parserr^� _ironpython26_sys_version_parserr�reprr:rW�_sys_version_parser�_pypy_sys_version_parserr2rrrr,rFrJ)�sys_versionrr�r^rZalt_versionZcompilerZbuildnoZ	builddateZ	buildtimer��branchZrevisionrLrrr�_sys_version�s�

��
��


�

���



r
cCs
t�dSr��r
rrrr�python_implementationRsrcCs
t�dS)Nrrrrrr�python_version_srcCstt�d�d��S)NrrD)r-r
rrrrr�python_version_tupleis	rcCs
t�dS)Nr!rrrrr�
python_branchtsrcCs
t�dS)NrErrrrr�python_revision�srcCst�dd�S)Nr�rjrrrrr�python_build�srcCs
t�dS)Nrjrrrrr�python_compiler�srcCs^t�||fd�}|dur|St�\}}}}}}||kr:d}|rPt|||�\}}}|dkrnt�d}	|	rnd}|	}|dkr�t|�\}
}}}
|r�t||�}nt||||�}n�|dvr�t�\}}t||||d||�}n~|dk�rt�\}}}\}}}|s�|�st|||�}nt|||d	|||�}n2|�r.t||�}n t	t
j�\}}t||||||�}|t||f<|S)
NrZDarwinrZmacOSr�)ZLinux�withr�Zon)�_platform_cacherr�r�r�r�r�rCr�r�r0r1)�aliased�terserr_rr`rr�r�Z
macos_releaseZrelZversr�r�rWZlibcnameZlibcversion�rrr�r�r�r�r�r�rrrrW�sP


�

��rW�__main__rz--terseZ
nonaliasedz--nonaliased)Nrrr)r)rrrrN)rrrr)rr�r)rrr�r�)r)r)N)rr)FZ
__copyright__�__version__�collectionsr*�rer0rXr�r�r�compilerr�ASCIIr6rCrMr]rcr}rrpror�r�r�r�r�r�r�r�r�r�r�r1r�r�r�r��
namedtupler�r�r�r_rr`rr�r�r	rrr
rr
rrrrrrrrrWr��argvrr�print�exitrrrr�<module>\s�
�
�
G


�
2��

3

#4 

$�O
 
��*Y	
			����
h




L