AlkantarClanX12
Current Path : /opt/alt/python39/lib64/python3.9/__pycache__/ |
Current File : //opt/alt/python39/lib64/python3.9/__pycache__/platform.cpython-39.pyc |
a R�f�� � @ s� d Z dZdZddlZddlZddlZddlZddlZddlZddl Z ddddddd d d d d� Z e�d�Zd d� Z e�dej�Zd}dd�Zd~dd�Ze�d�Zddd�Zddddddd d!d"d#d$d%�Zdd&d'd(d)d*d+�Zd,d-� Zd.d/� Zd�d0d1�Zd2d3� Zd�d5d6�Zd7d8� Zd�d9d:�Zd;d<� Zd=d>� Zd�d?d@�ZdAdB� Z d�dCdD�Z!dEdFdGd�Z"ej#ddfdHdI�Z$dJdK� Z%G dLdM� dM�Z&dNdO� Z'G dPdQ� dQe�(dRdS��Z)da*dTdU� Z+dVdW� Z,dXdY� Z-dZd[� Z.d\d]� Z/d^d_� Z0d`da� Z1e�dbej�Z2e�dcej�Z3e�dd�Z4e�de�Z5i Z6d�dfdg�Z7dhdi� Z8djdk� Z9dldm� Z:dndo� Z;dpdq� Z<drds� Z=dtdu� Z>i Z?d�dvdw�Z@eAdxk�r�dyejBv �ppdzejBv ZCd{ejBv�o�d|ejBvZDeEe@eDeC�� e�Fd� 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� � � �( �2 �� ) ZdevZalpha�aZbeta�b�cZRCZrc�pl�pz([0-9]+|[._+-])c C s` g }t �| �D ]L}|dvrzt|d�}d}W n tyJ t�|d�}Y n0 |�||f� q|S )Nz._+-r �d r )� _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 r sC (__libc_init)|(GLIBC_([0-9.]+))|(libc(_\w+)?\.so(?:\.(\d[0-9.]*))?)� � @ c C s | du rXz0t �d�}|jdd�}t|�dkr6t|�W S W n tttfyP Y n0 tj } t }tt jd�rtt j� | �} t| d���j}|�|�}d} | t|�k �r�d |v s�d |v r�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�W d � n1 �s�0 Y ||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. N�CS_GNU_LIBC_VERSION� )�maxsplit� �realpath�rbr s libcs GLIBCi� c S s"