Your IP : 3.15.211.55


Current Path : /opt/alt/python310/lib64/python3.10/__pycache__/
Upload File :
Current File : //opt/alt/python310/lib64/python3.10/__pycache__/platform.cpython-310.opt-2.pyc

o

6��f4��@s�	dZdZddlZddlZddlZddlZddlZddlZddlZddddddddd	d	d
�
Z	e�
d�Zdd
�Ze�
dej
�Zd�dd�Zd�dd�Ze�
d�Z		d�dd�Zdddddddd d!d"d#d$�Zdd%d&d'd(d)d*�Zd+d,�Zd-d.�Zd�d/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�
dw�Z@e�
dx�ZAdyZBdaCdzd{�ZDd|d}�ZEeFd~k�ridejGv�pOd�ejGvZHd�ejGv�oZd�ejGvZIeJe?eIeH��e�Kd�dSdS)�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]&}|dvr-z	t|d�}d}Wnty%t�|d�}Ynw|�||f�q|S)Nz._+-r�dr)�
_component_re�split�int�
ValueError�_ver_stages�get�extend)�version�result�v�t�r�//opt/alt/python310/lib64/python3.10/platform.py�_comparable_version�s
��rsC(__libc_init)|(GLIBC_([0-9.]+))|(libc(_\w+)?\.so(?:\.(\d[0-9.]*))?)��@c
Cs	|s+zt�d�}|jdd�}t|�dkrt|�WSWntttfy'Ynwtj	}t
}ttjd�r9tj�
|�}t|d���}|�|�}d}	|	t|�kr�d|vsTd	|vr[t�||	�}
nd}
|
rg|
��t|�kr�|�|�}|r�|t|	t|�d
�d�|}d}	qF|
s�nqdd�|
��D�\}}
}}}}|r�|s�d
}n=|
r�|dkr�d}|}n2||�||�kr�|}n'|r�|dkr�d
}|r�|r�||�||�kr�|}|r�|t|�d�|kr�||}|
��}	|	t|�ksLWd�||fSWd�||fSWd�||fS1�swY||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�sz


��

���
�#�
�#�
�#�#rCcCs`	|�d�}|r
|�|�zttttt|���}Wnty$|}Ynwd�|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�}Wnt|jfy6}zWYd}~qd}~wwn|||fS|��}t�	|�}|durn|�
�\}}}|ddkr^|dd�}|ddkrj|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_vers8



���


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_iotSs
rpcCs�zzddl}Wn
tyddl}YnwWn
ty YdSwz%d}|�|j|��}|�|d�dWd�WS1s?wYWdStyPYdSw)Nr�,SOFTWARE\Microsoft\Windows NT\CurrentVersionZ	EditionId)�winreg�ImportError�_winreg�	OpenKeyEx�HKEY_LOCAL_MACHINE�QueryValueExr/)rr�cvkey�keyrrrroVs*��	�$���rocCs�zddlm}Wnty||||fYSw|�}zttt�d�d��\}}}Wnty@|jp:|dd�\}}}Ynwd�	|||�}t
�||f�pWt
�|df�pW|}|dd�||fkr�zd�	|j�}Wnt
y�|dd�d	kr�d
|dd�}Ynwt|dd�dkr�t�||f�p�t�|df�p�|}zzddl}	Wn
ty�ddl}	YnwWn	ty�Yn.wz#d}
|	�|	j|
��}|	�|d
�d}Wd�n1s�wYWn	ty�Ynw||||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�ptyperz�winver�major�minorrKrrrxryrrr�	win32_verhsf� �������������r�cCs�d}tj�|�s
dSzddl}Wn
tyYdSwt|d��
}|�|�}Wd�n1s0wY|d}d}t��j}|dvrFd}|||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�cCs	t�}|dur
|S|||fS�N)r�)r`r�r�rbrrr�mac_ver�s


r�cCsBddlm}z|�|�}|dur|WS|WSty |YSw)Nr)�System)�	java.langr�ZgetPropertyr.)�name�defaultr��valuerrr�
_java_getprop�s
�r�cCs�	zddl}Wnty||||fYSwtd|�}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�}|r6zt|d�}Wn	ty&Ynw|d}t|�|d<d�|�}|dkr=d}n	d}n|dvrFd	}|||fS)
NZSunOS�5rDrrE�6ZSolaris�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�}||krPn|}qE|ddkre|dd�}|ddksY|S)N�-css�|]}|��VqdSr�)r\)r&�xrrr�	<genexpr>"s�z_platform.<locals>.<genexpr>� �_�/�\�:�;�"�(�)�unknownrrz--rV)rJ�filterr,�replace)�argsrWZcleanedrrr�	_platforms*��r�cCsH	zddl}Wnty|YSwz|��WSty#|YSw�Nr)�socketrsZgethostnamer/)r�r�rrr�_node<s�
�r�cCsN	tj�|�}tj�|�r%tj�tj�tj�|�t�|���}tj�|�s
|Sr�)r*r3�abspath�islink�normpathrJ�dirname�readlink)�filepathrrr�_follow_symlinksKs��r�c	Csz	tjdvr|Sddl}t|�}ttjdd�}z|jdd|g|j|d�}Wnt	|j
fy3|YSw|s8|S|�d�S)	N)rQrOrPr�C)�LC_ALL�filez-b)rS�envzlatin-1)r0rWrXr��dictr*�environrYrZr/r[r%)�targetr�rXr��outputrrr�_syscmd_fileWs"

��
r�)r�	WindowsPE)rr�)r�MSDOScCs	|sddl}|�d�}t|d�d}|rt|d�}nd}|s=|tjkr=tjtvr9ttj\}}|r5|}|r9|}||fSd|vrId|vrI||fSd|vrPd	}nd
|vrVd}d|vr`d}||fSd
|vrtd|vrnd}||fSd
}||fSd|vr~d}||fSd|vr�d}||fS	||fS)Nr�P��bitrr1z
shared objectz32-bit�32bitz64-bitZ64bitZELFZPEr�r�ZCOFFzMS-DOSr�)�structZcalcsizerIr�r0r1rW�_default_architecture)r1�bits�linkager��sizeZfileoutr	rLrrr�architecture�sP


��	���r�cCstj�dd�p
tj�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�s
z_Processor.getcCstj�dt��S)NZPROCESSOR_IDENTIFIER)r*r�rr�rrrr�	get_win32��z_Processor.get_win32cCsBzddl}Wn
tyYdSw|�dd�\}}|dkrdSdS)NrzSYI$_CPU�ZAlphaZVAX)�vms_librsZgetsyi)r�ZcsidZ
cpu_numberrrr�get_OpenVMS�s�z_Processor.get_OpenVMSc	Cs:	ztjddgtjdd���WSttjfyYdSw)Nr�z-pT)rSrT)rXrYrZr\r/r[rrrrr��s���z_Processor.from_subprocessN)�__name__�
__module__�__qualname__�classmethodrr�r�r�rrrrr��s
	r�cCs|dkrdS|S)Nr�rr)�valrrr�_unknown_as_blank�r�r�csTeZdZ	dZejdd��Z�fdd�Zedd��Z	dd	�Z
d
d�Zdd
�Z�Z
S)�uname_result)r_�noder`rr��	processorcCstt���Sr�)r�r�r��selfrrrr�
szuname_result.processorcst�t���|jf�Sr�)�	itertools�chain�super�__iter__r�r���	__class__rrr�s�zuname_result.__iter__cCsPt|j�d}|j|g|�R�}t|�|dkr&d|�dt|���}t|��|S)Nrz	Expected z arguments, got )r,�_fields�__new__�	TypeError)r��iterable�
num_fieldsr�msgrrr�_makeszuname_result._makecCst|�|Sr�)r-)r�ryrrr�__getitem__!szuname_result.__getitem__cCsttt|���Sr�)r,r-�iterr�rrr�__len__$r�zuname_result.__len__cCstt|�dt|j�d�fS�Nr)r�r-r,r�r�rrr�
__reduce__'szuname_result.__reduce__)r�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~	tdurtSz
t��\}}}}}}Wnty+tj}t�}d}}}d}Ynwt|�s�|dkr@t�\}}}}|p?t	�}|rD|sit
|�\}}}|dkrRd}n|dkri|dkrid}d|dd�krgd	}nd}|d
vr{|sx|dkrvd}nd}d}n|dd
�dkr�t�\}}}	}
d}d�|	�}|s�|}|dkr�|r�|dkr�|}d}|dkr�|dkr�d}d	}|||||f}t
tt|��atS)NrrrOzMicrosoft Windowsr�Z	Microsoftz6.0rErdr�r�Z16bit�r��Java�, ZOpenVMS�0)�_uname_cacher*r�r.r0rWr��anyr�r�rcr�rJr�rHr�)r_r�r`rr�Zinfosr�r�r�r�r�Zvalsrrrr�.s\�

r�cC�
	t�jSr�)r�r_rrrrr_��r_cCrr�)r�r�rrrrr��sr�cCrr�)r�r`rrrrr`�rr`cCrr�)r�rrrrrr�rrcCrr�)r�r�rrrrr��rr�cCrr�)r�r�rrrrr��sr�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|vrBd}|�d�r%t�|�}nt�|�}|dur6tdt	|���|�
�\}}}d}d}nytj�d�rnd}t�|�}|dur[tdt	|���|�
�\}}}}	}
|durjd}tj}nMd|vr�d}t
�|�}|dur�tdt	|���|�
�\}}}}	d}n+t�|�}|dur�td	t	|���|�
�\}}}}	}d
}|dur�d}n|	r�|d|	}ttd�r�tj\}
}}nttd
�r�tj\}
}}nd}d}|�d�}
t|
�dkr�|
�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�

��
��
�
���




rcC�	t�dSr��rrrrr�python_implementationG�
	rcCrr�rrrrr�python_versionTs
rcCs	tt�d�d��S)NrrD)r-rrrrrr�python_version_tuple^srcCr)Nr!rrrrr�
python_branchis

rcCr)NrErrrrr�python_revisionwrrcCs	t�dd�S)Nr�rjrrrrr�python_build�srcCr)Nrjrrrrr�python_compiler�s
rcCsZ	t�||fd�}|dur|St�\}}}}}}||krd}|r)t|||�\}}}|dkr8t�d}	|	r8d}|	}|dkrTt|�\}
}}}
|rLt||�}nYt||||�}nQ|dvrit�\}}t||||d||�}n<|dkr�t�\}}}\}}}|s{|s�t|||�}n#t|||d	|||�}n|r�t||�}nt	t
j�\}}t||||||�}|t||f<|S)
NrZDarwinrZmacOSr�)�Linux�withr�Zon)�_platform_cacherr�r�r�r�r�rCr�r�r0r1)�aliased�terserr_r�r`rr�r�Z
macos_releaseZrelZversr�r�rWZlibcnameZlibcversion�rrr�r�r�r�r�r�rrrrW�sR


���rWzA^(?P<name>[a-zA-Z0-9_]+)=(?P<quote>["']?)(?P<value>.*)(?P=quote)$z\\([\\\$\"\'`]))z/etc/os-releasez/usr/lib/os-releasecCsHdddd�}|D]}t�|�}|dur!t�d|�d��||�d�<q|S)NrZlinux)�NAMEZIDZPRETTY_NAMEz\1r�r�)�_os_release_liner^�_os_release_unescape�sub�group)�linesrb�lineZmorrr�_parse_os_release�s�

��r)cCs�	tdurLd}tD]7}z t|dd��}t|�aWd�n1s!wYWt��Sty@}z	|j}WYd}~q	d}~wwt|dd�t�����t��S)Nzutf-8)�encodingzUnable to read files r)�_os_release_cache�_os_release_candidatesr4r)r/�errnorJ�copy)r-�	candidater?�errr�freedesktop_os_releases&
�	����r1�__main__r z--terseZ
nonaliasedz--nonaliased)Nrrr)r)rrrrN)rrrr)rr�r)rrr�r�r�)rr)LZ
__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�rr�r_r�r`rr�r�r
r
rrrrrrrrrrrrrWr#r$r,r+r)r1r��argvr r�print�exitrrrr�<module>s�Y
�
�

G


�2��

3

#*
 
$�L
 
��,Y	
			����
h




O�

�

?>