ok
Direktori : /lib64/python3.6/__pycache__/ |
Current File : //lib64/python3.6/__pycache__/platform.cpython-36.pyc |
3 ��fn� � @ sB d Z dZdZddlZddlZddlZddlZddlZddlZy ej Z W n( ek rn ejd�krfdZ nd Z Y nX d Z dddd d dddddd� Zejd�Zdd� Zejdej�Zejdddfdd�Zdd� Zejdej�Zejdej�Zejdej�Zd�Zd/d0� Zddded1fd2d3�Zd4d5� Zdddefd6d7�Zd�d9d:�Zd�d;d<�Z ejd=�Z!d�d>d?�Z"d�dAd�dBd�dDd�dEd�dGd�dHd�dId�dKd�dLd�dMd�dNiZ#d�dDd�dOd�dPd�dQd�dRd�dSiZ$d�dTdU�Z%dVdW� Z&d�dXdY�Z'dZd[� Z(d�d\d]�Z)d^d_� Z*d`da� Z+d�dbdc�Z,ddde� Z-d�dfdg�Z.d�dhdi�Z/d�d�d�dm�Z0ejddfdndo�Z1ej2dpdq�Z3da4drds� Z5dtdu� Z6dvdw� Z7dxdy� Z8dzd{� Z9d|d}� Z:d~d� Z;ejd�ej�Z<ejd�ej�Z=ejd��Z>ejd��Z?i Z@d�d�d��ZAd�d�� ZBd�d�� ZCd�d�� ZDd�d�� ZEd�d�� ZFd�d�� ZGd�d�� ZHi ZId�d�d��ZeJd�k�r>d�ejKk�pd�ejKkZLd�ejKk�o$d�ejKkZMeNeeMeL�� ejOd� dS )�a8 This module tries to retrieve as much platform-identifying data as possible. It makes this information available via function APIs. If called from the command line, it prints the platform information concatenated as single string to stdout. The output format is useable as part of a filename. 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�dos�win32�win16ZNULz /dev/nullz/etc� � � �( �2 �� ) ZdevZalpha�aZbeta�b�cZRC�rc�pl�pz([0-9]+|[._+-])c C sf g }x\t j| �D ]N}|dkryt|d�}d}W n tk rN tj|d�}Y nX |j||f� qW |S )Nz._+-r �d r )� _component_re�split�int� ValueError�_ver_stages�get�extend)�version�result�v�t� r � /usr/lib64/python3.6/platform.py�_comparable_version� s r sC (__libc_init)|(GLIBC_([0-9.]+))|(libc(_\w+)?\.so(?:\.(\d[0-9.]*))?)� i @ c C s� t }ttjd�rtjj| �} t| d���`}|j|�}d}�xH|t|�k �r�d|ksZd|krhtj ||�}nd}| s�|j � t|�kr�|j|�} | r�|t|t|�d �d� | }d}q<|s�P dd � |j� D �\} }}} }}| r�| r�d }n�|�r|dk�rd}|}n||�||�k�rx|}n^| �rx|dk�rxd }|�rR| �sN||�||�k�rR|}|�rx|t|� d� |k�rx|| }|j � }q<W W dQ R X ||fS )a Tries to determine the libc version that the file executable (which defaults to the Python interpreter) is linked against. Returns a tuple of strings (lib,version) which default to the given parameters in case the lookup fails. Note that the function has intimate knowledge of how different libc versions add symbols to the executable and thus is probably only useable for executables compiled using gcc. The file is read and scanned in chunks of chunksize bytes. �realpath�rbr s libcs GLIBCNi� c S s"