ok

Mini Shell

Direktori : /opt/alt/python311/lib64/python3.11/__pycache__/
Upload File :
Current File : //opt/alt/python311/lib64/python3.11/__pycache__/platform.cpython-311.pyc

�

�f/�����dZdZdZddlZddlZddlZddlZddlZddlZddddddd	d	d
d
d�
Z	ej
d��Zd
�Zej
dej
��Zd_d�Zd`d�Zej
d��Z		dad�Zddddddddddd d!�Zdd"d#d$d%d&d'�Zd(�Zd)�Zdbd*�Zd+�Zdcd-�Zd.�Zddd/�Zd0�Zd1�Zd`d2�Zd3�Zd`d4�Z d5d6d7d�Z!ej"ddfd8�Z#d9�Z$Gd:�d;��Z%d<�Z&Gd=�d>ej'd?d@����Z(da)dA�Z*dB�Z+dC�Z,dD�Z-dE�Z.dF�Z/dG�Z0ej
dHej
��Z1ej
dIej
��Z2ej
dJ��Z3ej
dK��Z4iZ5dedL�Z6dM�Z7dN�Z8dO�Z9dP�Z:dQ�Z;dR�Z<dS�Z=iZ>dfdT�Z?ej
dU��Z@ej
dV��ZAdWZBdaCdX�ZDdY�ZEeFdZkrKd[ejGvpd\ejGvZHd]ejGvod^ejGvZIeJe?eIeH����ejKd��dSdS)ga7 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�pz([0-9]+|[._+-])c��g}t�|��D]\}|dvrV	t|d��}d}n+#t$rt�|d��}YnwxYw|�||f���]|S)Nz._+-r�dr)�
_component_re�split�int�
ValueError�_ver_stages�get�extend)�version�result�v�ts    �//opt/alt/python311/lib64/python3.11/platform.py�_comparable_versionr!�s���
�F�
�
 �
 ��
)�
)�"�"���F�?�?�
*���2�J�J�������
*�
*�
*��O�O�A�q�)�)����
*�����M�M�1�a�&�!�!�!���Ms�7�%A�AsC(__libc_init)|(GLIBC_([0-9.]+))|(libc(_\w+)?\.so(?:\.(\d[0-9.]*))?)��@c��|s}	tjd��}|�d���}t|��dkrt	|��Sn#t
ttf$rYnwxYwtj	}|s||fSt}tj�|��}t|d��5}|�|��}d}	|	t|��k�r\d|vsd|vrt�||	��}
nd	}
|
r%|
���t|��krH|�|��}|r.|t%|	t|��d
z
��d	�|z}d}	��|
sn�d�|
���D��\}}
}}}}|r|sd}ns|
r&|d
krd
}|}nf||��||��kr|}nK|rI|d
krCd}|r|r||��||��kr|}|r!|t|��d	�|kr||z}|
���}	|	t|��k��\d	d	d	��n#1swxYwY||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 usable for executables compiled using gcc.

        The file is read and scanned in chunks of chunksize bytes.

    �CS_GNU_LIBC_VERSION�)�maxsplit��rbrslibcsGLIBCNi�c�@�g|]}|�|�d��n|��S)N�latin1)�decode)�.0�ss  r �
<listcomp>zlibc_ver.<locals>.<listcomp>�sC��E%�E%�E%��'(�m�����"�"�"��E%�E%�E%��libc�glibc)�os�confstrr�len�tuple�AttributeErrorr�OSError�sys�
executabler!�path�realpath�open�read�_libc_search�search�end�max�groups)r:�libr�	chunksize�ver�parts�V�f�binary�pos�m�chunk�libcinitr2�glibcversion�so�threads�	soversions                  r �libc_verrS�s��� �	��*�2�3�3�C��I�I�q�I�)�)�E��5�z�z�Q����U�|�|�#����
�G�4�	�	�	��D�	�����^�
��	 ���<���A���!�!�*�-�-�J�	
�j�$�	�	�"�1����	�"�"�����C��K�K����&� � �H��$6�$6� �'�'���4�4������
������3�v�;�;�.�.����y�)�)����#�C��S��[�[�4�-?�$@�$@�$A�$A�B�U�J�F��C�����E%�E%������E%�E%�E%�A�H�e�\�2�w�	��
4��
4�����
4��'�>�>�!�C�*�G�G��Q�|�_�_�q�q��z�z�1�1�*�G���
4��'�>�>� �C� �,�'�,�Q�Q�y�\�\�A�A�g�J�J�5N�5N�"+���4�7�C��L�L�=�>�>�#:�g�#E�#E�")�G�"3���%�%�'�'�C�?�C��K�K���"�"�"�"�"�"�"�"�"�"�"����"�"�"�"�F��<�s%�AA�A+�*A+�6FI
�
I�Ic	�*�|�d��}|r|�|��	ttttt
|������}n#t$r|}YnwxYwd�|dd���}|S)z� Normalize the version and build strings and return a single
        version string using the format major.minor.build (or patchlevel).
    �.N�)r�append�list�map�strrr�join)r�build�l�stringss    r �
_norm_versionr_�s���
	�
�
�c���A���	���������s�3��C����,�,�-�-�����������������h�h�w�r��r�{�#�#�G��Ns�5A$�$A3�2A3z'(?:([\w ]+) ([\w.]+) .*\[.* ([\d.]+)\])��win32�win16�dosc	���tj|vr|||fSddl}dD]G}	|�||j|jddd���}n##t
|jf$r
}Yd}~�@d}~wwxYw|||fS|���}t�	|��}|�S|�
��\}}}|ddkr
|dd�}|ddkr
|dd�}t|��}|||fS)	a+ Tries to figure out the OS version used and returns
        a tuple (system, release, version).

        It uses the "ver" shell command for this which is known
        to exists on Windows, DOS. XXX Others too ?

        In case this fails, the given parameters are used as
        defaults.

    rN)rFzcommand /c verz
cmd /c verT�locale)�stdin�stderr�text�encoding�shell���rU)r9�platform�
subprocess�check_output�DEVNULLr8�CalledProcessError�strip�_ver_output�matchrCr_)	�system�releaser�supported_platformsrm�cmd�info�whyrLs	         r �_syscmd_verrzsK���|�.�.�.��w��'�'�����6�(�(��	��*�*�3�1;�1C�2<�2D�04�4<�15�+�7�7�D�
�E��	��6�7�	�	�	��H�H�H�H�����	�����w��'�'��:�:�<�<�D����$���A��}�#$�8�8�:�:� �����2�;�#����c�r�c�l�G��2�;�#����c�r�c�l�G� ��(�(���7�G�#�#s�%A�A�A�2000�XP�
2003Server�post2003�Vista�7�8z8.1zpost8.1�10�post10))�r)r�r&�r�r()r�N��r�r�r&�r�r(�r�rV�r�N)rr)rN�
2008Server�2008ServerR2�
2012Server�2012ServerR2�post2012ServerR2)r�r�r�r�r�r�c�"�t��dvS)N)�IoTUAP�
NanoServer�WindowsCoreHeadless�	IoTEdgeOS)�
win32_edition�r0r �win32_is_iotr�Vs���?�?�Z�Z�Zr0c�"�		ddl}n#t$rddl}YnwxYw	d}|�|j|��5}|�|d��dcddd��S#1swxYwYn #t$rYnwxYw#t$rYnwxYwdS)Nr�,SOFTWARE\Microsoft\Windows NT\CurrentVersion�	EditionId)�winreg�ImportError�_winreg�	OpenKeyEx�HKEY_LOCAL_MACHINE�QueryValueExr8)r��cvkey�keys   r r�r�Ys6��
�	%��M�M�M�M���	%�	%�	%�$�$�$�$�$�$�	%����
	�C�E��!�!�&�";�U�C�C�
@�s��*�*�3��<�<�Q�?�
@�
@�
@�
@�
@�
@�
@�
@�
@�
@�
@�
@����
@�
@�
@�
@�
@���	�	�	��D�	������
�
�
���
�����4s[��A?��A?��A?�A/�A#�A/�#A'�'A/�*A'�+A/�/
A<�;A<�?
B�Bc�2�	ddlm}n#t$r	||||fcYSwxYw|��}	ttt��d�d����\}}}n%#t$r|jp	|dd�\}}}YnwxYwd�	|||��}t�||f��pt�|df��p|}|dd�||fkrG	d�	|j��}n+#t$r|dd�d	kr
d
|dd�z}YnwxYwt|dd��dkr:t�||f��pt�|df��p|}		ddl}	n#t$rddl}	YnwxYw	d}
|	�|	j|
��5}|	�|d
��d}ddd��n#1swxYwYn #t*$rYnwxYw#t$rYnwxYw||||fS)Nr)�getwindowsversionr(rUrVz{0}.{1}.{2}zSP{}�
z
Service Pack �SP�product_typer��CurrentType)r9r�r�rYrrzrr�platform_version�format�_WIN32_CLIENT_RELEASESr�service_pack_majorr7�getattr�_WIN32_SERVER_RELEASESr�r�r�r�r�r8)rur�csd�ptyper��winver�major�minorr\r�r�r�s            r �	win32_verr�ks"��,�)�)�)�)�)�)�)���,�,�,����e�+�+�+�+�,�����
�
 �
 �F�D�!�#�{�}�}�Q�'7�'=�'=�c�'B�'B�C�C���u�e�e���D�D�D�$�5�C��������u�e�e�e�D�����"�"�5�%��7�7�G�%�)�)�5�%�.�9�9��%�)�)�5�$�-�8�8�����b�q�b�z�e�U�^�#�#�	&��-�-�� 9�:�:�C�C���	&�	&�	&��3�B�3�x�?�*�*��S����X�o����	&����
�v�~�t�,�,��1�1�)�-�-�u�e�n�=�=��)�-�-�u�d�m�<�<���	�
�	%��M�M�M�M���	%�	%�	%�$�$�$�$�$�$�	%����
	�C�E��!�!�&�";�U�C�C�
C�s��+�+�C��?�?��B��
C�
C�
C�
C�
C�
C�
C�
C�
C�
C�
C����
C�
C�
C�
C����	�	�	��D�	������
�
�
���
�����G�S�%�'�'s��	���>A)�)B�
B�0D�%D3�2D3�F�H�F�H�F�H�!G3�>G'�G3�'G+�+G3�.G+�/G3�3
H�?H�
H�Hc�J�d}tj�|��sdS	ddl}n#t$rYdSwxYwt|d��5}|�|��}ddd��n#1swxYwY|d}d}tj��j}|dvrd}|||fS)Nz0/System/Library/CoreServices/SystemVersion.plistrr)�ProductVersion�r"r"r")�ppczPower Macintosh�PowerPC)	r3r;�exists�plistlibr�r=�load�uname�machine)�fnr�rIrru�versioninfor�s       r �_mac_ver_xmlr��s��	;�B�
�7�>�>�"�����t�������������t�t�����
�b�$����1�
�]�]�1�
�
���������������������!�"�G��K��h�j�j� �G��,�,�,����K��(�(s�*�
8�8�A-�-A1�4A1r�c�0�t��}|�|S|||fS)a< Get macOS version information and return it as tuple (release,
        versioninfo, machine) with versioninfo being a tuple (version,
        dev_stage, non_release_version).

        Entries which cannot be determined are set to the parameter values
        which default to ''. All tuple entries are strings.
    )r�)rur�r�rxs    r �mac_verr��s'���>�>�D������K��(�(r0c�j�ddlm}	|�|��}|�|S|S#t$r|cYSwxYw)Nr)�System)�	java.langr��getPropertyr7)�name�defaultr��values    r �
_java_getpropr��s_�� � � � � � ���"�"�4�(�(���=��N���������������s�#�#�2�2c�r�	ddl}n#t$r	||||fcYSwxYwtd|��}td|��}|\}}}td|��}td|��}td|��}|||f}|\}}	}
td|
��}
td	|��}td
|	��}	||	|
f}||||fS)a] Version interface for Jython.

        Returns a tuple (release, vendor, vminfo, osinfo) with vminfo being
        a tuple (vm_name, vm_release, vm_vendor) and osinfo being a
        tuple (os_name, os_version, os_arch).

        Values which cannot be determined are set to the defaults
        given as parameters (which all default to '').

    rNzjava.vendorzjava.versionzjava.vm.namezjava.vm.vendorzjava.vm.versionzjava.os.archzjava.os.namezjava.os.version)r�r�r�)ru�vendor�vminfo�osinfo�java�vm_name�
vm_release�	vm_vendor�os_name�
os_version�os_archs           r �java_verr��s��/��������/�/�/�����.�.�.�.�/�����=�&�
1�
1�F��N�G�4�4�G�%+�"�G�Z���N�G�4�4�G��.�	�:�:�I��0�*�=�=�J�
�j�)�
+�F�#)� �G�Z���N�G�4�4�G��N�G�4�4�G��0�*�=�=�J�
�j�'�
)�F��F�F�F�*�*s���c�&�|dkr�|dkr|||fS|�d��}|rS	t|d��}|dz
}t|��|d<d�|��}n#t$rYnwxYw|dkrd}n	d}n|dvrd	}|||fS)
z� Returns (system, release, version) aliased to common
        marketing names used for some systems.

        It also does some reordering of the information in some cases
        where it would otherwise cause confusion.

    �SunOS�5rUrrV�6�Solaris�rarb�Windows)rrrZr[r)rtrurr]r�s     r �system_aliasr��s��������S�=�=��7�G�+�+��M�M�#�����	&�
&��A�a�D�	�	����	���5�z�z��!���(�(�1�+�+�����
�
�
���
�����S�=�=��F�F��F�F�	�%�	%�	%���
�7�G�#�#s�A,�,
A9�8A9c�|�d�d�tt|��D����}|�dd��}|�dd��}|�dd��}|�dd��}|�dd��}|�d	d��}|�d
d��}|�dd��}|�dd
��}	|�dd��}||krn|}� |ddkr|dd�}|ddk�|S)zq Helper to format the platform string in a filename
        compatible format e.g. "system-version-machine".
    �-c3�>K�|]}|���V��dS�N)rq)r-�xs  r �	<genexpr>z_platform.<locals>.<genexpr>%s*����=�=�a����	�	�=�=�=�=�=�=r0� �_�/�\�:�;�"�(�)�unknownr"r&z--rkN)r[�filterr5�replace)�argsrl�cleaneds   r �	_platformr�sW���x�x�=�=�6�#�t�+<�+<�=�=�=�=�=�H�����S�)�)�H�����S�)�)�H�����c�*�*�H�����S�)�)�H�����S�)�)�H�����S�)�)�H�����S�)�)�H�����S�)�)�H����	�2�.�.�H���"�"�4��-�-���h������	�
�2�,�#�
�
��C�R�C�=���2�,�#�
�
��Or0c��	ddl}n#t$r|cYSwxYw	|���S#t$r|cYSwxYw)z8 Helper to determine the node name of this machine.
    rN)�socketr��gethostnamer8)r�r�s  r �_noder�?sq����
�
�
�
����������������!�!�#�#�#�������������s����.�=�=c��tj�|��}tj�|��r�tj�tj�tj�|��tj|������}tj�|����|S)zT In case filepath is a symlink, follow it until a
        real file is reached.
    )r3r;�abspath�islink�normpathr[�dirname�readlink)�filepaths r �_follow_symlinksrNs���
�w���x�(�(�H�
�'�.�.��
"�
"�L��7�#�#��G�L�L������2�2�B�K��4I�4I�J�J�L�L��
�'�.�.��
"�
"�L��Or0c�N�tjdvr|S	ddl}n#t$r|cYSwxYwt	|��}ttjd���}	|�dd|g|j	|���}n#t|jf$r|cYSwxYw|s|S|�d	��S)
z� Interface to the system's file command.

        The function uses the -b option of the file command to have it
        omit the filename in its output. Follow the symlinks. It returns
        default in case the command should fail.

    )rcrarbrN�C)�LC_ALL�filez-b)rg�envzlatin-1)
r9rlrmr�r�dictr3�environrnror8rpr,)�targetr�rmr�outputs     r �_syscmd_filerZs����|�0�0�0����������������������
�f�
%�
%�F��r�z�#�
&�
&�
&�C���(�(�&�$��)?�0:�0B�-0�)�2�2����
�Z�2�3�����������������=�=��#�#�#s��&�&� A5�5B�
B)r"�	WindowsPE)r"r�)r"�MSDOSc��|s.ddl}|�d��}t|dz��dz}|rt|d��}nd}|sI|tjkr9tjtvr"ttj\}}|r|}|r|}||fSd|vrd|vr||fSd	|vrd
}nd|vrd}d
|vrd
}nd|vr
d|vrd}nd}nd|vrd}nd|vrd}n	||fS)a� Queries the given executable (defaults to the Python interpreter
        binary) for various architecture information.

        Returns a tuple (bits, linkage) which contains information about
        the bit architecture and the linkage format used for the
        executable. Both values are returned as strings.

        Values that cannot be determined are returned as given by the
        parameter presets. If bits is given as '', the sizeof(pointer)
        (or sizeof(long) on Python version < 1.5.2) is used as
        indicator for the supported pointer size.

        The function relies on the system's "file" command to do the
        actual work. This is available on most if not all Unix
        platforms. On some non-Unix platforms where the "file" command
        does not exist and the executable is set to the Python interpreter
        binary defaults from _default_architecture are used.

    rN�P��bitr"r:z
shared objectz32-bit�32bitz64-bit�64bit�ELF�PEr�r�COFFzMS-DOSr
)�struct�calcsizerZrr9r:rl�_default_architecture)r:�bits�linkager�size�fileoutr
r]s        r �architecturer�s_��.�%��
�
�
����s�#�#���4�!�8�}�}�u�$�����z�2�.�.������
��S�^�#�#��<�0�0�0�(���6�D�A�q��
����
����W�}���7�"�"��g�'E�'E��W�}���7������	�W�	�	���
�������	
��������!�G�G��G�G�	�7�	�	����	�W�	�	����	
���=�r0c��tj�dd��ptj�dd��S)N�PROCESSOR_ARCHITEW6432r"�PROCESSOR_ARCHITECTURE)r3rrr�r0r �_get_machine_win32r"�s6��	�
���/��4�4�	5�
�
���/��4�4�r0c�6�eZdZed���Zd�Zd�Zd�ZdS)�
_Processorc�`�t|dtj��|j��}|��pdS)N�get_r")r�r9rl�from_subprocess)�cls�funcs  r rz_Processor.get�s1���s�1�3�<�1�1�3�3F�G�G���t�v�v�|��r0c�Z�tj�dt����S)N�PROCESSOR_IDENTIFIER)r3rrr"r�r0r �	get_win32z_Processor.get_win32�s ���z�~�~�4�6H�6J�6J�K�K�Kr0c�t�	ddl}|�dd��\}}|dkrdndS#t$rYdSwxYw)NrzSYI$_CPU��Alpha�VAX)�vms_lib�getsyir�)r1�csid�
cpu_numbers   r �get_OpenVMSz_Processor.get_OpenVMS�sb��	;��N�N�N� '�~�~�j�!�<�<��D�*�(�C�/�/�7�7�U�:��	�	�	�	��D�D�	���s�)�
7�7c���	ddl}n#t$rYdSwxYw	|�ddg|jdd������S#t
|jf$rYdSwxYw)z)
        Fall back to `uname -p`
        rNr�z-pT�utf8)rgrhri)rmr�rnrorqr8rp)rms r r'z_Processor.from_subprocess�s���	��������	�	�	��4�4�	����	��*�*��$��!�)���	+���
�e�g�g�
����6�7�	�	�	��D�D�	���s��
��1A�A �A N)�__name__�
__module__�__qualname__�classmethodrr,r5r'r�r0r r$r$�s]����������[��L�L�L�;�;�;�����r0r$c��|dkrdn|S)Nr�r"r�)�vals r �_unknown_as_blankr>s���	�!�!�2�2�s�*r0c�n��eZdZdZdZejd���Z�fd�Ze	d���Z
d�Zd�Zd�Z
�xZS)	�uname_resultz�
    A uname_result that's largely compatible with a
    simple namedtuple except that 'processor' is
    resolved late and cached to avoid calling "uname"
    except when needed.
    )rt�noderurr��	processorc�N�tt�����Sr�)r>r$r��selfs r rBzuname_result.processors�� ����!1�!1�2�2�2r0c�v��tjt�����|jf��Sr�)�	itertools�chain�super�__iter__rB)rE�	__class__s �r rJzuname_result.__iter__s2������G�G�����
�^��
�
�	
r0c���t|j��dz
}|j|g|�R�}t|��|dzkr$d|�dt|����}t|���|S)Nr&z	Expected z arguments, got )r5�_fields�__new__�	TypeError)r(�iterable�
num_fieldsr�msgs     r �_makezuname_result._make"sr�����%�%��)�
����S�,�8�,�,�,���v�;�;�*�q�.�(�(�G�j�G�G�#�f�+�+�G�G�C��C�.�.� ��
r0c�,�t|��|Sr�)r6)rEr�s  r �__getitem__zuname_result.__getitem__,s���T�{�{�3��r0c�T�ttt|������Sr�)r5r6�iterrDs r �__len__zuname_result.__len__/s���5��d���$�$�%�%�%r0c�h�tt|��dt|j��dz
�fS)Nr&)r@r6r5rMrDs r �
__reduce__zuname_result.__reduce__2s-���U�4�[�[�)?�#�d�l�*;�*;�a�*?�)?�@�@�@r0)r8r9r:�__doc__rM�	functools�cached_propertyrBrJr;rSrUrXrZ�
__classcell__)rKs@r r@r@
s��������
��O�G���3�3���3�
�
�
�
�
�����[�� � � �&�&�&�A�A�A�A�A�A�Ar0r@�uname_result_basez#system node release version machinec���t�tS	tj��x\}}}}}}n2#t$r%tj}t
��}dx}x}}d}YnwxYwt|��s�|dkr#t��\}}}}|p
t��}|r|s=t|��\}}}|dkrd}n!|dkr|dkrd}d|dd	�krd
}nd}|dvr|s|dkrd}nd
}d}n<|dd�dkr.t��\}}}	}
d}d�|	��}|s|}|dkr|r|dkr|}d}|dkr
|dkrd}d
}|||||f}ttt|���atS)an Fairly portable uname interface. Returns a tuple
        of strings (system, node, release, version, machine, processor)
        identifying the underlying platform.

        Note that unlike the os.uname function this also returns
        possible processor information as an additional tuple entry.

        Entries which cannot be determined are set to ''.

    Nr"r�razMicrosoft Windowsr��	Microsoftz6.0rVrr�r�16bit�r��Java�, �OpenVMS�0)�_uname_cacher3r�r7r9rlr��anyr�r"rzr�r[r@rYr>)rtrArurr��infosr�r�r�r�r��valss            r r�r�9s�������:<�(�*�*�D�/���g�w��%�%����������w�w��&(�(��(�'�G�����	�����u�:�:�*!��W���+4�;�;�(�G�W�c�5��5�!3�!5�!5�G��	!�G�	!�'2�6�':�':�$�F�G�W��,�,�,�"����;�&�&�7�i�+?�+?�
#���G�B�Q�B�K�'�'�%�G�G� �G��'�'�'��
&��W�$�$�%�G�G�%�G��F�F�
�B�Q�B�Z�6�
!�
!�.6�j�j�+�G�V�V�V��F��i�i��'�'�G��
!� �������	�'�S�.�.��G��G������I�!5�!5������4��'�7�2�D���%6��!=�!=�>�L��s�,�,A�Ac�(�t��jS)z� Returns the system/OS name, e.g. 'Linux', 'Windows' or 'Java'.

        An empty string is returned if the value cannot be determined.

    )r�rtr�r0r rtrt�s���7�7�>�r0c�(�t��jS)z� Returns the computer's network name (which may not be fully
        qualified)

        An empty string is returned if the value cannot be determined.

    )r�rAr�r0r rArA�s���7�7�<�r0c�(�t��jS)z� Returns the system's release, e.g. '2.2.0' or 'NT'

        An empty string is returned if the value cannot be determined.

    )r�rur�r0r ruru�����7�7�?�r0c�(�t��jS)z� Returns the system's release version, e.g. '#3 on degas'

        An empty string is returned if the value cannot be determined.

    )r�rr�r0r rr�ror0c�(�t��jS)zt Returns the machine type, e.g. 'i386'

        An empty string is returned if the value cannot be determined.

    )r�r�r�r0r r�r��ror0c�(�t��jS)a Returns the (true) processor name, e.g. 'amdk6'

        An empty string is returned if the value cannot be
        determined. Note that many platforms do not provide this
        information or simply return the same value as for machine(),
        e.g.  NetBSD does this.

    )r�rBr�r0r rBrB�s���7�7��r0zL([\w.+]+)\s*\(#?([^,]+)(?:,\s*([\w ]*)(?:,\s*([\w :]*))?)?\)\s*\[([^\]]+)\]?z;IronPython\s*([\d\.]+)(?: \(([\d\.]+)\))? on (.NET [\d\.]+)zU([\d.]+)\s*\(IronPython\s*[\d.]+\s*\(([\d.]+)\) on ([\w.]+ [\d.]+(?: \(\d+-bit\))?)\)zE([\w.+]+)\s*\(#?([^,]+),\s*([\w ]+),\s*([\w :]+)\)\s*\[PyPy [^\]]+\]?c�|�|�tj}t�|d��}|�|Sd|vr�d}|�d��rt
�|��}nt�|��}|�tdt|��z���|�
��\}}}d}d}�nJtj�d��rhd}t�|��}|�tdt|��z���|�
��\}}}}	}
|�d}tj}n�d|vrYd}t�|��}|�td	t|��z���|�
��\}}}}	d}nft�|��}|�td
t|��z���|�
��\}}}}	}d}|�d}n
|	r|dz|	z}ttd
��rtj\}
}}n*ttd��rtj\}
}}nd}d}|�d��}
t%|
��dkr*|
�d��d�|
��}|||||||f}|t|<|S)a� Returns a parsed version of Python's sys.version as tuple
        (name, version, branch, revision, buildno, builddate, compiler)
        referring to the Python implementation name, version, branch,
        revision, build number, build date/time as string and the compiler
        identification string.

        Note that unlike the Python sys.version, the returned value
        for the Python version will always include the patchlevel (it
        defaults to '.0').

        The function returns empty strings for tuple entries that
        cannot be determined.

        sys_version may be given to parse an alternative version
        string, e.g. if the version was read from a different Python
        interpreter.

    N�
IronPythonz*failed to parse IronPython sys.version: %sr"r��Jythonz&failed to parse Jython sys.version: %s�PyPyz$failed to parse PyPy sys.version: %sz'failed to parse CPython sys.version: %s�CPythonr��_git�
_mercurialrUr(rg)r9r�_sys_version_cacher�
startswith�_ironpython_sys_version_parserrs� _ironpython26_sys_version_parserr�reprrCrl�_sys_version_parser�_pypy_sys_version_parser�hasattrrxryrr5rWr[)�sys_versionrr�rsr�alt_version�compiler�buildno�	builddate�	buildtimer��branch�revisionr]s              r �_sys_versionr��s���*���k�� �
#�
#�K��
6�
6�F�
���
��{�"�"����!�!�,�/�/�	H�2�8�8��E�E�E�E�4�:�:�;�G�G�E��=��<��[�!�!�"�#�#�
#�*/�����&���h����	�	�	��	 �	 ��	(�	(�$4���#�)�)�+�6�6���=��8��[�!�!�"�#�#�
#�5:�L�L�N�N�1���)�Y�����I��<���	�;�	�	���(�.�.�{�;�;���=��C�!�+�.�.�/�0�0�
0�16�����.���)�Y����$�)�)�+�6�6���=��9��[�!�!�"�#�#�
#��l�l�n�n�	9���)�Y�������I�I�
�	4�!�C��)�3�I��s�F����!�h���6�8�8�	��l�	#�	#��!�n���6�8�8�����	�
�
�c���A�
�1�v�v��{�{�	����
�
�
��(�(�1�+�+���G�V�X�w�	�8�
L�F�&,��{�#��Mr0c�*�t��dS)aR Returns a string identifying the Python implementation.

        Currently, the following implementations are identified:
          'CPython' (C implementation of Python),
          'IronPython' (.NET implementation of Python),
          'Jython' (Java implementation of Python),
          'PyPy' (Python implementation of Python).

    r�r�r�r0r �python_implementationr�R����>�>�!��r0c�*�t��dS)z� Returns the Python version as string 'major.minor.patchlevel'

        Note that unlike the Python sys.version, the returned value
        will always include the patchlevel (it defaults to 0).

    r&r�r�r0r �python_versionr�_s���>�>�!��r0c�j�tt��d�d����S)z� Returns the Python version as tuple (major, minor, patchlevel)
        of strings.

        Note that unlike the Python sys.version, the returned value
        will always include the patchlevel (it defaults to 0).

    r&rU)r6r�rr�r0r �python_version_tupler�is)�������"�(�(��-�-�.�.�.r0c�*�t��dS)z� Returns a string identifying the Python implementation
        branch.

        For CPython this is the SCM branch from which the
        Python binary was built.

        If not available, an empty string is returned.

    r(r�r�r0r �
python_branchr�ts���>�>�!��r0c�*�t��dS)z� Returns a string identifying the Python implementation
        revision.

        For CPython this is the SCM revision from which the
        Python binary was built.

        If not available, an empty string is returned.

    rVr�r�r0r �python_revisionr��r�r0c�.�t��dd�S)zh Returns a tuple (buildno, builddate) stating the Python
        build number and date as strings.

    rcr�r�r�r0r �python_buildr��s���>�>�!�A�#��r0c�*�t��dS)zS Returns a string identifying the compiler used for compiling
        Python.

    r�r�r�r0r �python_compilerr��s���>�>�!��r0c	��t�||fd��}|�|St��\}}}}}}||krd}|rt|||��\}}}|dkrt	��d}	|	rd}|	}|dkr:t|��\}
}}}
|rt
||��}n�t
||||��}n�|dvr)t��\}}t
||||d||z��}n�|d	krCt��\}}}\}}}|s|st
|||��}nYt
|||d
|||��}nC|rt
||��}n0ttj��\}}t
||||||��}|t||f<|S)a� Returns a single string identifying the underlying platform
        with as much useful information as possible (but no more :).

        The output is intended to be human readable rather than
        machine parseable. It may look different on different
        platforms and this is intended.

        If "aliased" is true, the function will use aliases for
        various platforms that report system names which differ from
        their common names, e.g. SunOS will be reported as
        Solaris. The system_alias() function is used to implement
        this.

        Setting terse to true causes the function to return only the
        absolute minimum information needed to identify the platform.

    Nr"�Darwinr�macOSr�)�Linux�withrd�on)�_platform_cacherr�r�r�r�r�rSr�rr9r:)�aliased�terserrtrArurr�rB�
macos_release�rel�versr�r�rl�libcname�libcversion�rrr�r�r�r�rrs                         r rlrl�s���&�
 �
 �'�5�!1�4�
8�
8�F�
���
�:?���6�F�D�'�7�G�Y��)����	��J�#/����#I�#I� ����
�����	�	�!��
��	$��F�#�G�
���� )�'� 2� 2���T�3���	@� ���1�1�H�H� ���'�3�?�?�H�H�	�:�	�	� (�
�
���+��V�W�g�y�#�%�k�1�3�3���
�6�	�	�7?�z�z�4��1�f�4�w�
�G��	?��	?� ���'�:�:�H�H� ���'�!%�!(�*�g�?�?�H�H��	;� ���1�1�H�H�(���8�8�M�D�'� ���'�!*�D�'�;�;�H�)1�O�W�e�$�%��Or0zA^(?P<name>[a-zA-Z0-9_]+)=(?P<quote>["']?)(?P<value>.*)(?P=quote)$z\\([\\\$\"\'`]))z/etc/os-releasez/usr/lib/os-releasec���dddd�}|D]b}t�|��}|�Dt�d|�d����||�d��<�c|S)Nr��linux)�NAME�ID�PRETTY_NAMEz\1r�r�)�_os_release_liners�_os_release_unescape�sub�group)�linesrx�line�mos    r �_parse_os_releaser��s��������D�����
�
#�
#�D�
)�
)��
�>�%9�%=�%=��r�x�x��(�(�&�&�D����&�!�!�"���Kr0c�`�t��d}tD]Z}	t|d���5}t|��addd��n#1swxYwYnI#t$r}|j}Yd}~�Sd}~wwxYwt	|dd�t�������t���S)zKReturn operation system identification from freedesktop.org os-release
    Nzutf-8)rizUnable to read files re)�_os_release_cache�_os_release_candidatesr=r�r8�errnor[�copy)r��	candidaterI�es    r �freedesktop_os_releaser�s��
� ���/�	�	�I�
 ��)�g�6�6�6�=�!�(9�!�(<�(<�%�=�=�=�=�=�=�=�=�=�=�=����=�=�=�=�����
 �
 �
 �������������
 ������K��	�	�2H�(I�(I�K�K���
�
�!�!�#�#�#s9�A�A�A�A	�A�A	�	A�
A)�A$�$A)�__main__r�z--terse�
nonaliasedz--nonaliased)Nr"r"r#)r")r"r"r"r`)r"r"r"r")r"r�r")r"r"r�r�r�)rr)Lr[�
__copyright__�__version__�collectionsr3�rer9r\rGr�compilerr!�ASCIIr?rSr_rrrzr�r�r�r�r�r�r�r�r�r�r�r�rrrr:rr"r$r>�
namedtupler@rhr�rtrArurr�rBrr|r}r�rzr�r�r�r�r�r�r�r�r�rlr�r�r�r�r�r�r8�argvr�r��print�exitr�r0r �<module>r�s�����r�
�*������	�	�	�	�	�	�	�	�
�
�
�
����������
�b��R�	�
�B�

�C�	�	����
�-�.�.�
�
�
�
��r�z�B�DF�8�	M�M��H�H�H�H�T
�
�
�
��b�j�-�.�.��02�#<�0$�0$�0$�0$�f
��
�������
�����(
�����!����[�[�[����$0(�0(�0(�0(�f)�)�)�,)�)�)�)�&	�	�	�+�+�+�+�F&$�&$�&$�T���@
�
�
�
�	�	�	� $� $� $� $�N�
����� �N��R�I�I�I�I�X
�
�
�"�"�"�"�"�"�"�"�J+�+�+�)A�)A�)A�)A�)A��K���-�/�/�)A�)A�)A�X��U�U�U�r���������������
�
�
�!�b�j���h� � ��",�����8�	"%�"%��$.�2�:�:�$�$� �&�2�:�����
��f�f�f�f�P������	/�	/�	/���������������H�H�H�H�^�2�:�I����"�r�z�"4�5�5��C�������&$�$�$�2�z���
���
 �
9�I���$9�E��3�8�+�N�N�c�h�4N�G�	�E�(�(�7�E�
"�
"�#�#�#��C�H�Q�K�K�K�K�K��r0

Zerion Mini Shell 1.0