%PDF- %PDF-
Direktori : /snap/core20/2379/lib/python3.8/__pycache__/ |
Current File : //snap/core20/2379/lib/python3.8/__pycache__/platform.cpython-38.pyc |
U k�]e� � @ sl d Z dZdZddlZddlZddlZddlZddddddd d d d d� Ze�d�Z d d� Z e�dej�Zdwdd�Z dxdd�Ze�d�Zdydd�Zddddddd d!d"d#d$d%�Zdd&d'd(d)d*d+�Zd,d-� Zd.d/� Zdzd0d1�Zd2d3� Zd{d5d6�Zd7d8� Zd|d9d:�Zd;d<� Zd=d>� Zd}d?d@�ZdAdB� Zd~dCdD�ZddEdF�ZdGdHdId�Z ej!ddfdJdK�Z"e�#dLdM�Z$da%dNdO� Z&dPdQ� Z'dRdS� Z(dTdU� Z)dVdW� Z*dXdY� Z+dZd[� Z,e�d\ej�Z-e�d]ej�Z.e�d^�Z/e�d_�Z0i Z1d�d`da�Z2dbdc� Z3ddde� Z4dfdg� Z5dhdi� Z6djdk� Z7dldm� Z8dndo� Z9i Z:d�dpdq�Z;e<drk�rhdsej=k�p8dtej=kZ>duej=k�oNdvej=kZ?e@e;e?e>�� e�Ad� 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 sb g }t �| �D ]N}|dkrzt|d�}d}W n tk rL t�|d�}Y nX |�||f� q|S )Nz._+-r �d r )� _component_re�split�int� ValueError�_ver_stages�get�extend)�version�result�v�t� r �/usr/lib/python3.8/platform.py�_comparable_version� s r sC (__libc_init)|(GLIBC_([0-9.]+))|(libc(_\w+)?\.so(?:\.(\d[0-9.]*))?)� � @ c C s� | dkrZz0t �d�}|jdd�}t|�dkr6t|�W S W n tttfk rR Y nX tj } t }tt jd�rvt j� | �} t| d���`}|�|�}d} | t|�k �r�d |ks�d |kr�t�|| �} nd} | r�| �� t|�k�r|�|�}|�r|t| t|�d �d� | }d} q�| �s�q�dd � | �� D �\}} }}}}|�rF|�sFd}n�| �rx|dk�r`d}|}n||�||�k�r�|}n\|�r�|dk�r�d}|�r�|�r�||�||�k�r�|}|�r�|t|� d� |k�r�|| }| �� } q�W 5 Q 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. N�CS_GNU_LIBC_VERSION� )�maxsplit� �realpath�rbr s libcs GLIBCi� c S s"