AlkantarClanX12

Your IP : 18.224.73.157


Current Path : /opt/alt/python35/lib64/python3.5/__pycache__/
Upload File :
Current File : //opt/alt/python35/lib64/python3.5/__pycache__/platform.cpython-35.opt-2.pyc



���]7��@s�dZdZddlZddlZddlZddlZddlZddlZy
ejZ	Wn0e
k
r�ejd�kr�dZ	ndZ	YnXd	Zej
d
ej�Zejdddd
d�Zdd�Zej
dej�Zej
dej�Zej
dej�Zd�Zd#d$�Zddded%d&d'�Zd(d)�Zddded*d+�Zd,d�d-d.�Zdd/d0�Zej
d1�Zdddd�d2d3�Zd�d5d�d6d�d8d�d9d�d;d�d<d�d=d�d?d�d@d�dBd�dCiZd�d8d�dDd�dEd�dFd�dGd�dHiZ dddddIdJ�Z!dKdL�Z"dd�ddMdN�Z#dOdP�Z$ddd�d�dQdR�Z%dSdT�Z&dUdV�Z'ddWdX�Z(dYdZ�Z)dd[d\�Z*dd]d^�Z+dd�dd�dd�iZ,ejdddbdc�Z-ej.ddde�Z/da0dfdg�Z1dhdi�Z2djdk�Z3dldm�Z4dndo�Z5dpdq�Z6drds�Z7ej
dtej�Z8ej
duej�Z9ej
dv�Z:ej
dw�Z;iZ<ddxdy�Z=dzd{�Z>d|d}�Z?d~d�Z@d�d��ZAd�d��ZBd�d��ZCd�d��ZDiZEddd�d��ZeFd�kr�d�ejGkpZd�ejGkZHd�ejGkoxd�ejGkZIeJeeIeH��ejKd�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.7�N�dos�win32�win16ZNULz	/dev/nullz/etcsC(__libc_init)|(GLIBC_([0-9.]+))|(libc(_\w+)?\.so(?:\.(\d[0-9.]*))?)�i@c
Cs�ttjd�r$tjj|�}t|d��[}|j|�}d}x<d|ksfd|kr{tj||�}nd}|s�|j|�}|s�Pd}qNdd�|j�D�\}}	}
}}}
|r�|r�d}n�|	r|d	krd	}|
}qz|
|krz|
}n]|rz|d	krzd}|
rM|
|krM|
}|rz|t	|�d�|krz||}|j
�}qNWWdQRX||fS)
N�realpath�rbrslibcsGLIBCcSs1g|]'}|dk	r'|jd�n|�qS)N�latin1)�decode)�.0�s�r�-/opt/alt/python35/lib64/python3.5/platform.py�
<listcomp>�s	zlibc_ver.<locals>.<listcomp>Zlibc�glibc)�hasattr�os�pathr�open�read�_libc_search�search�groups�len�end)�
executable�lib�version�	chunksize�f�binary�pos�mZlibcinitrZglibcversionZso�threadsZ	soversionrrr
�libc_ver�sD	"
			#
r#cCs�tjjd�r�d}x�td�D]v}|j�}t|�dkr%|\}}nq%|dkrv|j�}q%|dkr%|jd�}|d}q%W|||fStjjd�rxVtd�D]H}|jd�}t|�dkr�|dd	kr�d	|d
|fSq�Wtjjd�r�tjd�}	xEt	t|	�d
dd�D]'}
|	|
dd�d
krU|	|
=qUW|	r�|	j
�d}|	ddd�}|||fS|||fS)Nz/var/adm/inst-log/info�SuSE�ZMIN_DIST_VERSIONZ
DIST_IDENT�-z/etc/.installedrZ	OpenLinux�z/usr/lib/setup�zslack-version-�	slackware���r*r*)rr�existsr�splitr�strip�isdir�listdir�range�sort)�distnamer�id�lineZtv�tag�value�valuesZpkgZverfiles�nrrr
�_dist_try_harder�s:	
"#

r9z(\w+)[-_](release|version)z'(.+) release ([\d.]+)[^(]*(?:\((.+)\))?z1([^0-9]+)(?: release )?([\d.]+)[^(]*(?:\((.+)\))?r$�debian�fedora�redhat�centos�mandrake�mandriva�rocksr)�	yellowdog�gentoo�UnitedLinux�
turbolinux�arch�mageiacCs�d}d}tj|�}|dk	r7t|j��Stj|�}|dk	rbt|j��S|j�j�}|r�|d}t|�dkr�|d}d||fS)Nrrr')�_lsb_release_version�match�tupler�_release_versionr-r,r)�	firstlinerr3r!�lrrr
�_parse_release_files

rMr'cCs8ddl}|jdtdd�t|||||�S)NrzFdist() and linux_distribution() functions are deprecated in Python 3.5�
stacklevelr%)�warnings�warn�PendingDeprecationWarning�_linux_distribution)r2rr3�supported_dists�full_distribution_namerOrrr
�linux_distribution,s
	
rUcCs,ytjt�}Wntk
r4|||fSYnX|j�x^|D]F}tj|�}|dk	rF|j�\}}	||krF|}PqFWt|||�St	tj
jt|�ddddd��}
|
j�}WdQRXt
|�\}}}
|r|r|}|r|}|
r|
}|||fS)N�r�encodingzutf-8�errors�surrogateescape)rr/�_UNIXCONFDIR�OSErrorr1�_release_filenamerHrr9rr�join�readlinerM)r2rr3rSrTZetc�filer!Z	_distname�dummyrrKZ_versionZ_idrrr
rR6s0


rRcCs>ddl}|jdtdd�t|||d|dd�S)NrzFdist() and linux_distribution() functions are deprecated in Python 3.5rNr%rSrT)rOrPrQrR)r2rr3rSrOrrr
�distls	
rarVcCs5ddl}|jdtdd�tj|||�S)Nrzuse os.popen insteadrNr%)rOrP�DeprecationWarningr�popen)�cmd�mode�bufsizerOrrr
rc�srccCs�|jd�}|r"|j|�ytt|�}Wntk
rO|}YnXttt|��}dj|dd��}|S)N�.�)r,�append�map�int�
ValueError�list�strr])r�buildrLZints�stringsrrr
�
_norm_version�s

rqz'(?:([\w ]+) ([\w.]+) .*\[.* ([\d.]+)\])c	Cs2tj|kr|||fSx~dD]i}y7tj|�}|j�}|j�r_td��Wn(tk
r�}zw#WYdd}~Xq#XPq#W|||fS|j�}tj	|�}|dk	r%|j
�\}}}|ddkr�|dd	�}|d
dkr|dd�}t|�}|||fS)N�ver�command /c ver�
cmd /c verzcommand failedr'rg)rrrsrtr*r*r*r*)�sys�platformrrcr�closer[r-�_ver_outputrHrrq)	�system�releaserZsupported_platformsrd�pipe�info�whyr!rrr
�_syscmd_ver�s,


r~�Z2000ZXPr%Z
2003ServerZpost2003��Vista�7�8rhz8.1zpost8.1�
Z10Zpost10Z
2008ServerZ2008ServerR2Z
2012ServerZ2012ServerR2Zpost2012ServerR2c(Csyddlm}Wn"tk
r8||||fSYnXy&ddlm}m}m}m}Wn4tk
r�ddlm}m}m}m}YnX|�}	|	j	p�|	dd�\}
}}dj
|
||�}tj|
|f�ptj|
df�p|}|	dd�|
|fkrwydj
|	j
�}Wn<tk
rv|dd�d	krrd
|dd�}YnXt|	dd�dkr�tj|
|f�p�tj|
df�p�|}d}
z5y&||d�}
||
d
�d}WnYnXWd|
r
||
�X||||fS)Nr)�getwindowsversion)�	OpenKeyEx�QueryValueEx�CloseKey�HKEY_LOCAL_MACHINErhz{0}.{1}.{2}r%zSP{}�
z
Service Pack ZSPZproduct_typez,SOFTWARE\Microsoft\Windows NT\CurrentVersionZCurrentType)rur��ImportError�winregr�r�r�r��_winregZ_platform_version�format�_WIN32_CLIENT_RELEASES�getZservice_pack_major�AttributeError�getattr�_WIN32_SERVER_RELEASES)rzr�csd�ptyper�r�r�r�r�ZwinverZmaj�minro�keyrrr
�	win32_ver�sD
&
'	"
		r�cCs�d}tjj|�sdSyddl}Wntk
rDdSYnXt|d��}|j|�}WdQRX|d}d	}tj�j}|d
kr�d}|||fS)Nz0/System/Library/CoreServices/SystemVersion.plistrrZProductVersionr�ppc�Power MacintoshZPowerPC)rrr)r�r�)	rrr+�plistlibr�r�load�uname�machine)�fnr�r�plrz�versioninfor�rrr
�_mac_ver_xml%s
	
r�cCs&t�}|dk	r|S|||fS)N)r�)rzr�r�r|rrr
�mac_ver;s	r�cCsTddlm}y'|j|�}|dkr2|S|SWntk
rO|SYnXdS)Nr)�System)�	java.langr�ZgetPropertyr�)�name�defaultr�r6rrr
�
_java_getpropNs
r�cCs�yddl}Wn"tk
r4||||fSYnXtd|�}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�r�r�)rz�vendor�vminfo�osinfo�javaZvm_nameZ
vm_releaseZ	vm_vendor�os_name�
os_version�os_archrrr
�java_verYs"

r�cCs|dkrd|||fS|dkr�|dkrB|||fS|jd�}|r�yt|d�}Wntk
rYn*X|d}t|�|d<dj|�}|dkr�d	}qd	}n@|d
kr�d}|r�|d}qd
}n|dkrd}|||fS)NZRhapsodyzMacOS X ServerZSunOS�5rgrrh�6ZSolarisZIRIX64ZIRIXz (64bit)�64bitrr�Windows)rr)r,rkrlrnr])ryrzrrL�majorrrr
�system_alias|s2	


		
	r�cGsdjdd�tt|�D��}|jdd�}|jdd�}|jdd�}|jdd�}|jd	d�}|jd
d�}|jdd�}|jdd�}|jd
d�}x)|jdd�}||kr�P|}q�Wx$|ddkr|dd�}q�W|S)Nr&css|]}|j�VqdS)N)r-)r
�xrrr
�	<genexpr>�sz_platform.<locals>.<genexpr>� �_�/�\�:�;�"�(�)�unknownrz--r'r*r*)r]�filterr�replace)�argsrvZcleanedrrr
�	_platform�s$%
r�cCsTyddl}Wntk
r(|SYnXy|j�SWntk
rO|SYnXdS)Nr)�socketr��gethostnamer[)r�r�rrr
�_node�s
	
r�cCsetjj|�}xLtjj|�r`tjjtjjtjj|�tj|���}qW|S)N)rr�abspath�islink�normpathr]�dirname�readlink)�filepathrrr
�_follow_symlinks�s
	1r�cCs�tjdkr|Sytjd|tf�}Wnttfk
rN|SYnX|j�j�}|j	�}|sz|r~|S|SdS)Nrrrzuname %s 2> %s)rrr)
rurvrrc�DEV_NULLr�r[rr-rw)�optionr�r�output�rcrrr
�
_syscmd_uname�s	
r�cCs�tjd	kr|St|�}y+tjd|gdtjdtj�}Wnttfk
rh|SYnX|j	�dj
d�}|j�}|s�|r�|S|SdS)
Nrrrr_�stdout�stderrrzlatin-1)rrr)rurvr��
subprocess�Popen�PIPE�STDOUTr�r[�communicater	�wait)�targetr��procr�r�rrr
�_syscmd_file�s		
r��	WindowsPEr��MSDOScCs�|s`ddl}y|jd�}Wn$|jk
rK|jd�}YnXt|d�d}|rxt|d�}nd}|r�|tjkr�tjtkr�ttj\}}|r�|}|r�|}||fSd|kr�||fSd|krd	}n'd
|krd}nd|kr*d
}d|kr?d}nTd|krid|kr`d}q�d}n*d|kr~d}nd|kr�d}n||fS)Nr�PrL�Zbitrrz32-bit�32bitZN32Zn32bitz64-bitr�ZELFZPEr�r�ZCOFFzMS-DOSr�)	�struct�calcsize�errorrnr�rurrv�_default_architecture)r�bits�linkager��sizeZfileout�brLrrr
�architecture"sL

							r��uname_resultz-system node release version machine processorcCs}d}tdk	rtSd}ytj�\}}}}}Wntk
rUd}YnX|s�ttd|||||f��r6|r�tj}d}d}t�}d}d}|dkrAt	�\}}}}	|r�|r�d}|s&dtj
krtj
jdd�}ntj
jdd�}|sAtj
jd|�}|r�t|�\}}}|dkrqd	}nC|d
kr�|d	kr�d	}d|dd�kr�d
}nd}|dkr�|s�|dkr�d}nd}d	}nL|dd�dkr6t
�\}}
}}d}dj|�}|s6|
}|dkr�|sU|dkra|}d}yddl}
Wntk
r�Yn4X|
jdd�\}}|dkr�d}nd}|s�tdd�}|dkr�d}|dkr�d}|dkrd}|dkrd}|dkr(d}|dkr:d}|d
kr^|d	kr^d	}d
}t||||||�atS)Nrrr'rZPROCESSOR_ARCHITEW6432ZPROCESSOR_ARCHITECTUREZPROCESSOR_IDENTIFIERzMicrosoft Windowsr�Z	Microsoftz6.0rhr�rr�Z16bit�r��Javaz, ZOpenVMS�0zSYI$_CPU�ZAlphaZVAXz-pr�)rr)�_uname_cacherr�r�rmr�rurvr�r��environr�r~r�r]�vms_libr�Zgetsyir�r�)Zno_os_uname�	processorry�noderzrr�Zuse_syscmd_verr�r�r�r�r�r�ZcsidZ
cpu_numberrrr
r�{s�

+						
	r�cCs
t�jS)N)r�ryrrrr
rysrycCs
t�jS)N)r�r�rrrr
r�sr�cCs
t�jS)N)r�rzrrrr
rzsrzcCs
t�jS)N)r�rrrrr
r!srcCs
t�jS)N)r�r�rrrr
r�*sr�cCs
t�jS)N)r�r�rrrr
r�3s
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�|dkrtj}tj|d�}|dk	r7|Sd|kr�d}|jd�rjtj|�}ntj|�}|dkr�tdt	|���|j
�\}}}d}d}natjjd�rAd}tj|�}|dkrtdt	|���|j
�\}}}}	}
|dkr5d}tj}n�d|kr�d}t
j|�}|dkr�tdt	|���|j
�\}}}}	d}n{tj|�}|dkr�td	t	|���|j
�\}}}}	}d
}|dkrd}n|	r |d|	}ttd�rDtj\}
}}nTttd
�rhtj\}
}}n0ttd�r�tj\}
}}nd}d}|jd�}
t|
�dkr�|
jd�dj|
�}|||||||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�
_mercurial�
subversionrgr%r�)rur�_sys_version_cacher��
startswith�_ironpython_sys_version_parserrH� _ironpython26_sys_version_parserrl�reprrrv�_sys_version_parser�_pypy_sys_version_parserrr�r�r�r,rrir])�sys_version�resultr�rHrZalt_versionZcompilerZbuildnoZ	builddateZ	buildtimer�ZbranchZrevisionrLrrr
�_sys_version]s|				

rcCst�dS)Nr)rrrrr
�python_implementation�srcCst�dS)Nr')rrrrr
�python_version�srcCstt�djd��S)Nr'rg)rIrr,rrrr
�python_version_tuple�s	rcCst�dS)Nr%)rrrrr
�
python_branch�sr	cCst�dS)Nrh)rrrrr
�python_revision�sr
cCst�dd�S)Nr�r�)rrrrr
�python_buildsrcCst�dS)Nr�)rrrrr
�python_compiler
srcCs|tj||fd�}|dk	r(|St�\}}}}}}||krUd}|rvt|||�\}}}|dkr�t|�\}	}
}}|r�t||�}
qht||||�}
n�|d
krztj��-tjddt	�t
d�\}}}WdQRX|rC|rCt||||d|||�}
qhttj
�\}}t||||d||�}
n�|dkr�t�\}}}\}}}|s�|r�t|||�}
qht|||d|||�}
n�|d	kr |rt||�}
qht|||�}
nH|r8t||�}
n0ttj
�\}}t||||||�}
|
t||f<|
S)Nrr��Linux�ignorez?dist\(\) and linux_distribution\(\) functions are deprecated .*�withr�ZonZMacOS)r
)�_platform_cacher�r�r�r�r�rO�catch_warnings�filterwarningsrQrar#rurr�r�)�aliased�terserryr�rzrr�r�ZrelZversr�r�rvr2ZdistversionZdistidZlibcnameZlibcversionrV�vr�r�r�r�r�r�rrr
rvs\


rv�__main__rz--terseZ
nonaliasedz--nonaliased)rrr)r$r:r;r<r=r>r?r@r)rArBrCrDrErFr*)rrr)rr)rr')rr%)rN)r�r)r�r')r�r%)r�rh)r�N)r�r)r�N)rr%)r�r)r�r')r�r%)r�rh)r�N)rrr)rrr)rrr)rr�)rr�)rr�)LZ
__copyright__�__version__�collectionsrur�rer�rO�devnullr�r�rvrZ�compile�ASCIIrrr#r9r\rGrJZ_supported_distsrMrUrRrarcrqrxr~r�r�r�r�r�r�r�r�r�r�r�r�r�r�r��
namedtupler�r�r�ryr�rzrr�r�rr�r�rr�rrrrr	r
rrr�__name__�argvrr�print�exitrrrr
�<module>ps�0

		70			6	
	00#6 T		�	
					k



[