%PDF- %PDF-
Direktori : /opt/alt/python36/lib64/python3.6/__pycache__/ |
Current File : //opt/alt/python36/lib64/python3.6/__pycache__/platform.cpython-36.pyc |
3 � fd� � @ 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.d/� Zddded0fd1d2�Zd3d4� Zdddefd5d6�Zd�d8d9�Zd�d:d;�Z ejd<�Z!d�d=d>�Z"d�d@d�dAd�dCd�dDd�dFd�dGd�dHd�dJd�dKd�dLd�dMiZ#d�dCd�dNd�dOd�dPd�dQd�dRiZ$d�dSdT�Z%dUdV� Z&d�dWdX�Z'dYdZ� Z(d�d[d\�Z)d]d^� Z*d_d`� Z+d�dadb�Z,dcdd� Z-d�dedf�Z.d�dgdh�Z/d�d�d�dl�Z0ejddfdmdn�Z1ej2dodp�Z3da4dqdr� Z5dsdt� Z6dudv� Z7dwdx� Z8dydz� Z9d{d|� Z:d}d~� Z;ejdej�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 �-/opt/alt/python36/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"