%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /opt/alt/python36/lib64/python3.6/__pycache__/
Upload File :
Create Path :
Current File : //opt/alt/python36/lib64/python3.6/__pycache__/platform.cpython-36.pyc

3

� fd��@sBdZdZdZddlZddlZddlZddlZddlZddlZy
ej	Z
Wn(ek
rnejd�krfdZ
nd	Z
YnXd
Z
dddd
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?iZ@d�d�d��ZAd�d��ZBd�d��ZCd�d��ZDd�d��ZEd�d��ZFd�d��ZGd�d��ZHiZId�d�d��ZeJd�k�r>d�ejKk�pd�ejKkZLd�ejKk�o$d�ejKkZMeNeeMeL��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Csfg}x\tj|�D]N}|dkryt|d�}d}Wn tk
rNtj|d�}YnX|j||f�qW|S)Nz._+-r�dr)�
_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
rsC(__libc_init)|(GLIBC_([0-9.]+))|(libc(_\w+)?\.so(?:\.(\d[0-9.]*))?)�i@c
Cs�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�Pdd	�|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<WWdQRX||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�rbrslibcsGLIBCNi�cSs"g|]}|dk	r|jd�n|�qS)N�latin1)�decode)�.0�srrr�
<listcomp>�szlibc_ver.<locals>.<listcomp>Zlibc�glibc)
r�hasattr�os�pathr!�open�read�len�_libc_search�search�end�max�groups)�
executable�librZ	chunksize�V�fZbinary�pos�m�chunkZlibcinitr(ZglibcversionZsoZthreadsZ	soversionrrr�libc_ver�sJ




 r;cCsptjjd�r�d}td��`}xX|D]P}|j�}t|�dkr |\}}nq |dkrV|j�}q |dkr |jd�}|d}q WWdQRX|||fStjjd�r�td��D}x<|D]4}|jd�}	t|	�dkr�|	d	d
kr�d
|	d|fSq�WWdQRXtjjd��rftjd�}
x:t	t|
�ddd�D]"}|
|dd
�dk�r|
|=�qW|
�rf|
j
�d}|
dd
d�}|||fS|||fS)z� Tries some special tricks to get the distribution
        information in case the default method fails.

        Currently supports older SuSE Linux, Caldera OpenLinux and
        Slackware Linux distributions.

    z/var/adm/inst-log/info�SuSE�ZMIN_DIST_VERSIONZ
DIST_IDENT�-Nz/etc/.installedrZ	OpenLinux�z/usr/lib/setup�zslack-version-�	slackware���rBrB)r*r+�existsr,rr.�strip�isdir�listdir�range�sort)�distnamer�idr7�lineZtv�tag�value�valuesZpkgZverfiles�nrrr�_dist_try_harder�s>	










rPz(\w+)[-_](release|version)z'(.+) release ([\d.]+)[^(]*(?:\((.+)\))?z1([^0-9]+)(?: release )?([\d.]+)[^(]*(?:\((.+)\))?r<�debian�fedora�redhat�centos�mandrake�mandriva�rocksrA�	yellowdog�gentoo�UnitedLinux�
turbolinux�arch�mageiacCszd}d}tj|�}|dk	r&t|j��Stj|�}|dk	rDt|j��S|j�j�}|rp|d}t|�dkrp|d}d||fS)Nr rr?)�_lsb_release_version�match�tupler3�_release_versionrDrr.)�	firstlinerrJr9�lrrr�_parse_release_file0s

rdr?cCs(ddl}|jdtdd�t|||||�S)NrzFdist() and linux_distribution() functions are deprecated in Python 3.5r=)�
stacklevel)�warnings�warn�PendingDeprecationWarning�_linux_distribution)rIrrJ�supported_dists�full_distribution_namerfrrr�linux_distributionKs


rlcCs�ytjt�}Wntk
r(|||fSX|j�xD|D]0}tj|�}|dk	r8|j�\}}	||kr8|}Pq8Wt|||�St	tj
jt|�dddd��}
|
j�}WdQRXt
|�\}}}
|r�|r�|}|r�|}|
r�|
}|||fS)a� Tries to determine the name of the Linux OS distribution name.

        The function first looks for a distribution release file in
        /etc and then reverts to _dist_try_harder() in case no
        suitable files are found.

        supported_dists may be given to define the set of Linux
        distributions to look for. It defaults to a list of currently
        supported Linux distributions identified by their release file
        name.

        If full_distribution_name is true (default), the full
        distribution read from the OS is returned. Otherwise the short
        name taken from supported_dists is used.

        Returns a tuple (distname, version, id) which default to the
        args given as parameters.

    N�rzutf-8�surrogateescape)�encoding�errors)r*rF�_UNIXCONFDIR�OSErrorrH�_release_filenamer_r3rPr,r+�join�readlinerd)rIrrJrjrkZetc�filer9Z	_distnameZdummyr7rbZ_versionZ_idrrrriUs0

ricCs*ddl}|jdtdd�t||||dd�S)aS Tries to determine the name of the Linux OS distribution name.

        The function first looks for a distribution release file in
        /etc and then reverts to _dist_try_harder() in case no
        suitable files are found.

        Returns a tuple (distname, version, id) which default to the
        args given as parameters.

    rNzFdist() and linux_distribution() functions are deprecated in Python 3.5r=)re)rjrk)rfrgrhri)rIrrJrjrfrrr�dist�s
rwrmcCs&ddl}|jdtdd�tj|||�S)z! Portable popen() interface.
    rNzuse os.popen insteadr=)re)rfrg�DeprecationWarningr*�popen)�cmd�mode�bufsizerfrrrry�srycCsd|jd�}|r|j|�ytt|�}Wntk
r>|}YnXttt|��}dj|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�maprr�list�strrt)r�buildrcZintsZstringsrrr�
_norm_version�s


r�z'(?:([\w ]+) ([\w.]+) .*\[.* ([\d.]+)\])c	Cs�tj|kr|||fSxddD]R}y&tj|�}|j�}|j�rBtd��Wn$tk
rh}zwWYdd}~XqXPqW|||fS|j�}tj	|�}|dk	r�|j
�\}}}|d	dkr�|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.

    �ver�command /c ver�
cmd /c verzcommand failedNr?r})r�r�r�rBrBrBrB)�sys�platformr*ryr-�closerrrD�_ver_outputr_r3r�)	�system�releaserZsupported_platformsrz�pipe�infoZwhyr9rrr�_syscmd_ver�s,





r��Z2000ZXPr=Z
2003ServerZpost2003��Vista�7�8r~z8.1zpost8.1Z10Zpost10Z
2008ServerZ2008ServerR2Z
2012ServerZ2012ServerR2Zpost2012ServerR2c(Cs�yddlm}Wntk
r,||||fSXyddlm}m}m}m}Wn,tk
rvddlm}m}m}m}YnX|�}	|	j	p�|	dd�\}
}}dj
|
||�}tj|
|f�p�tj|
df�p�|}|	dd�|
|fk�r$ydj
|	j
�}Wn8tk
�r"|dd�d	k�rd
|dd�}YnXt|	dd�dk�rZtj|
|f��pXtj|
df��pX|}d}
z.y||d�}
||
d
�d}WnYnXWd|
�r�||
�X||||fS)Nr)�getwindowsversion)�	OpenKeyEx�QueryValueEx�CloseKey�HKEY_LOCAL_MACHINEr~z{0}.{1}.{2}r=zSP{}�
z
Service Pack ZSPZproduct_typez,SOFTWARE\Microsoft\Windows NT\CurrentVersionZCurrentType)r�r��ImportError�winregr�r�r�r��_winregZplatform_version�format�_WIN32_CLIENT_RELEASESrZservice_pack_major�AttributeError�getattr�_WIN32_SERVER_RELEASES)r�r�csd�ptyper�r�r�r�r�ZwinverZmaj�minr��keyrrr�	win32_versD

r�cCs�d}tjj|�sdSyddl}Wntk
r4dSXt|d��}|j|�}WdQRX|d}d	}tj�j}|d
krxd}|||fS)Nz0/System/Library/CoreServices/SystemVersion.plistrr"ZProductVersionr �ppc�Power MacintoshZPowerPC)r r r )r�r�)	r*r+rC�plistlibr�r,�load�uname�machine)�fnr�r7rr��versioninfor�rrr�_mac_ver_xmlEs
r�cCst�}|dk	r|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.
    N)r�)r�r�r�r�rrr�mac_ver[sr�cCs@ddlm}y|j|�}|dkr$|S|Stk
r:|SXdS)Nr)�System)�	java.langr�ZgetPropertyr�)�name�defaultr�rMrrr�
_java_getpropns
r�cCs�yddl}Wntk
r(||||fSXtd|�}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�)r��vendor�vminfo�osinfo�javaZvm_nameZ
vm_releaseZ	vm_vendor�os_name�
os_version�os_archrrr�java_verys"












r�cCs�|dkrd|||fS|dkr�|dkr0|||fS|jd�}|r�yt|d�}Wntk
rbYn X|d}t|�|d<dj|�}|dkr�d	}q�d	}n,|d
kr�d}|r�|d}q�d
}n|dkr�d}|||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.

    ZRhapsodyzMacOS X ServerZSunOS�5r}rr~�6ZSolarisZIRIX64ZIRIXz (64bit)�64bitrr�Windows)rr)rrrr�rt)r�r�rrc�majorrrr�system_alias�s2	



r�cGs�djdd�tt|�D��}|jdd�}|jdd�}|jdd�}|jdd�}|jd	d�}|jd
d�}|jdd�}|jdd�}|jd
d�}x|jdd�}||kr�P|}q�Wx|ddkr�|dd�}q�W|S)zq Helper to format the platform string in a filename
        compatible format e.g. "system-version-machine".
    r>css|]}|j�VqdS)N)rD)r%�xrrr�	<genexpr>�sz_platform.<locals>.<genexpr>� �_�/�\�:�;�"�(�)�unknownr z--r?NrBrB)rt�filterr.�replace)�argsr�Zcleanedrrr�	_platform�s$r�cCsDyddl}Wntk
r |SXy|j�Stk
r>|SXdS)z8 Helper to determine the node name of this machine.
    rN)�socketr�Zgethostnamerr)r�r�rrr�_node�sr�cCsFtjj|�}x4tjj|�r@tjjtjjtjj|�tj|���}qW|S)zT In case filepath is a symlink, follow it until a
        real file is reached.
    )r*r+�abspath�islink�normpathrt�dirname�readlink)�filepathrrr�_follow_symlinkss
"r�cCshtjdkr|Sytjd|tf�}Wnttfk
r<|SX|j�j�}|j	�}|s\|r`|S|SdS)z. Interface to the system's uname command.
    rrrzuname %s 2> %sN)rrr)
r�r�r*ry�DEV_NULLr�rrr-rDr�)Zoptionr�r7�outputrrrr�
_syscmd_unames

r�cCs|tjd	kr|St|�}ytjd|gtjtjd�}Wnttfk
rJ|SX|j	�dj
d�}|j�}|sp|rt|S|SdS)
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.

    rrrrv)�stdout�stderrrzlatin-1N)rrr)r�r�r��
subprocess�Popen�PIPEZSTDOUTr�rrZcommunicater$�wait)�targetr��procr�rrrr�_syscmd_files	


r��	WindowsPEr��MSDOS)rrrcCs.|sLddl}y|jd�}Wn |jk
r:|jd�}YnXt|d�d}|r\t|d�}nd}|r�|tjkr�tjtkr�ttj\}}|r�|}|r�|}||fSd|kr�||fSd	|kr�d
}nd|kr�d}nd
|kr�d}d|kr�d}n@d|k�rd|k�rd}nd}n d|k�rd}nd|k�r&d}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�Prc��bitr r4z32-bit�32bitZN32Zn32bitz64-bitr�ZELFZPEr�r�ZCOFFzMS-DOSr�)	�structZcalcsize�errorr�r�r�r4r��_default_architecture)r4�bits�linkager��sizeZfileoutrrcrrr�architectureBsL





r��uname_resultz-system node release version machine processorcCs�d}tdk	rtSd}ytj�\}}}}}Wntk
rBd}YnX|sdttd|||||f���r�|r�tj}d}d}t�}d}d}|dkr�t	�\}}}}	|r�|r�d}|s�dtj
kr�tj
jdd�}ntj
jdd�}|s�tj
jd|�}|�r<t|�\}}}|d	k�rd
}n4|dk�r<|d
k�r<d
}d|dd
�k�r8d}nd}|dk�rf|�s`|dk�r\d}nd}d
}n8|dd�dk�r�t
�\}}
}}d}dj|�}|�s�|
}|dk�r
|�s�|dk�r�|}d}yddl}
Wntk
�r�Yn&X|
jdd�\}}|dk�rd}nd}|�stdd�}|dk�r(d}|dk�r6d}|dk�rDd}|dk�rRd}|dk�r`d}|dk�rnd}|dk�r�|d
k�r�d
}d}t||||||�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 ''.

    rNr r?rZPROCESSOR_ARCHITEW6432ZPROCESSOR_ARCHITECTUREZPROCESSOR_IDENTIFIERzMicrosoft Windowsr�Z	Microsoftz6.0r~r�rr�Z16bit�r��Javaz, ZOpenVMS�0zSYI$_CPU�ZAlphaZVAXz-pr�)rr)�_uname_cacher*r�r�r�r�r�r�r�r��environrr�r�rt�vms_libr�Zgetsyir�r�)Zno_os_uname�	processorr��noder�rr�Zuse_syscmd_verr�r�r�r�r�r�ZcsidZ
cpu_numberrrrr��s�

 














r�cCst�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�r�rrrrr�%sr�cCst�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�rrrrrr.srcCst�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�r�rrrrr�8sr�cCst�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�rrrrrrAsrcCst�jS)zt Returns the machine type, e.g. 'i386'

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

    )r�r�rrrrr�Jsr�cCst�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�rrrrrrSs
rzL([\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 [^\]]+\]?cCs|dkrtj}tj|d�}|dk	r&|Sd|kr�d}|jd�rHtj|�}n
tj|�}|dkrjtdt	|���|j
�\}}}d}d}n�tjjd�r�d}tj|�}|dkr�tdt	|���|j
�\}}}}	}
|dkr�d}tj}n�d|k�r"d}t
j|�}|dk�rtd	t	|���|j
�\}}}}	d}n\tj|�}|dk�rFtd
t	|���|j
�\}}}}	}d}|dk�rld}n|	�r~|d|	}ttd
��r�tj\}
}}n<ttd��r�tj\}
}}n"ttd��r�tj\}
}}nd}d}|jd�}
t|
�dk�r|
jd�dj|
�}|||||||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.

    NZ
IronPythonz*failed to parse IronPython sys.version: %sr r�ZJythonz&failed to parse Jython sys.version: %sZPyPyz$failed to parse PyPy sys.version: %sz'failed to parse CPython sys.version: %sZCPythonr��_git�
_mercurial�
subversionr}r=r�)r�r�_sys_version_cacher�
startswith�_ironpython_sys_version_parserr_� _ironpython26_sys_version_parserr�reprr3r��_sys_version_parser�_pypy_sys_version_parserr)rrrrr.rrt)�sys_versionrr�r_rZalt_versionZcompilerZbuildnoZ	builddateZ	buildtimer�ZbranchZrevisionrcrrr�_sys_version}s|











r
cCs
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
rrrr�python_implementation�srcCs
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
rrrr�python_version�srcCstt�djd��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?r})r`r
rrrrr�python_version_tuple�s	rcCs
t�dS)z� Returns a string identifying the Python implementation
        branch.

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

        If not available, an empty string is returned.

    r=)r
rrrr�
python_branch
srcCs
t�dS)z� Returns a string identifying the Python implementation
        revision.

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

        If not available, an empty string is returned.

    r~)r
rrrr�python_revisionsrcCst�dd�S)zh Returns a tuple (buildno, builddate) stating the Python
        build number and date as strings.

    r�r�)r
rrrr�python_build%srcCs
t�dS)zS Returns a string identifying the compiler used for compiling
        Python.

    r�)r
rrrr�python_compiler-srcCs�tj||fd�}|dk	r|St�\}}}}}}||kr:d}|rPt|||�\}}}|dkr�t|�\}	}
}}|rxt||�}
nt||||�}
�n.|dk�rtj��"tjddt	�t
d�\}}}WdQRX|r�|r�t||||d|||�}
n$ttj
�\}}t||||d||�}
n�|dk�r\t�\}}}\}}}|�s8|�rFt|||�}
nt|||d	|||�}
n\|d
k�r�|�rxt||�}
nt|||�}
n2|�r�t||�}
n ttj
�\}}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 r��Linux�ignorez?dist\(\) and linux_distribution\(\) functions are deprecated .*�withr�ZonZMacOS)r)�_platform_cacherr�r�r�r�rf�catch_warnings�filterwarningsrhrwr;r�r4r�r�)�aliased�terserr�rr�rr�rZrelZversr�r�r�rIZdistversionZdistidZlibcnameZlibcversionrmrr�r�r�r�r�r�rrrr�9s\







r��__main__rz--terseZ
nonaliasedz--nonaliased)rrr)r<rQrRrSrTrUrVrWrArXrYrZr[r\r]rB)rmrB)r �rrr)r r r r)r�r)r�r?)r�r=)r�N)r�r)r�r?)r�r=)r�r~)r�N)rr)rN)r�r=)r�r)r�r?)r�r=)r�r~)r�N)r r r r �r r r )r rr �r r r �r r r )r r r r!)r )r )r )r r�)r r�)r r�)N)rr)P�__doc__Z
__copyright__�__version__�collectionsr�r*�rer�rf�devnullr�r�r�rqr�compilerr�ASCIIr/r4r;rPrsr^raZ_supported_distsrdrlrirwryr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r��
namedtupler�r�r�r�rr�rr�rr
rrrrr
rrrrrrrr�__name__�argvrr�print�exitrrrr�<module>
s�e 




:26
	



0
0

#6 


T	
			
k




[


Zerion Mini Shell 1.0