File: //lib/python3.12/__pycache__/platform.cpython-312.pyc
�
    )!�hC�  �                   ��  � d Z dZdZddlZddlZddlZddlZddlZddlZddddddd	d	d
d
d�
Z	d� Z
dGd�ZdHd�Z	 	 dId�Z
	 ddlZd� Zg d�Zg d�Zd� Zd� Zd� ZdJd�Zd� ZdKd�Zd� ZdLd�Zd� Zd� ZdHd �Zd!� ZdHd"�Zd#d$d%d�Z ejB                  d
d
fd&�Z"d'� Z# G d(� d)�      Z$d*� Z% G d+� d, ejL                  d-d.�      �      Z'da(d/� Z)d0� Z*d1� Z+d2� Z,d3� Z-d4� Z.d5� Z/i Z0dMd6�Z1d7� Z2d8� Z3d9� Z4d:� Z5d;� Z6d<� Z7d=� Z8i Z9dNd>�Z:d?Z;da<d@� Z=dA� Z>e?dBk(  r^dCej�                  v xs dDej�                  v ZAdEej�                  vxr dFej�                  vZB eC e:eBeA�      �        ej�                  d�       yy# e$ r d� ZY ��(w xY w)Oa7   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 usable 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   ��   )
�dev�alpha�a�beta�b�c�RC�rc�pl�pc                 �   � t        j                  d�      }g }|j                  | �      D ])  }|dvs�	 t        |d�      }d}|j                  ||f�       �+ |S # t        $ r t
        j
                  |d�      }Y �8w xY w)Nz([0-9]+|[._+-])z._+-r   �d   r   )�re�compile�split�int�
ValueError�_ver_stages�get�extend)�version�component_re�result�v�ts        �/usr/lib/python3.12/platform.py�_comparable_versionr#   �   s�   � ��:�:�0�1�L�
�F�
�
�
��
(� "���F�?�
*���2�J���� 
�M�M�1�a�&�!�"� �M�� � 
*��O�O�A�q�)��
*�s   �A�A9�8A9� c                 �p  � | sX	 t        j                  d�      }|j                  d��      }t        |�      dk(  rt	        |�      S 	 t        j                  } | s||fS t        j                  dt        j                  �      }t        }t         j                  j                  | �      } t!        | d�      5 }|j#                  |�      }	d}
|
t        |	�      k  �r*d|	v sd	|	v r|j%                  |	|
�      }nd
}|r|j'