Uname: Linux web3.us.cloudlogin.co 5.10.226-xeon-hst #2 SMP Fri Sep 13 12:28:44 UTC 2024 x86_64
Software: Apache
PHP version: 8.1.31 [ PHP INFO ] PHP os: Linux
Server Ip: 162.210.96.117
Your Ip: 3.147.70.101
User: edustar (269686) | Group: tty (888)
Safe Mode: OFF
Disable Function:
NONE

name : platform.cpython-32.pyc
l
��bc@s�dZdZdZddlZddlZddlZddlZy
ejZWn0e	k
r�ej
dVkrwd	Znd
ZYnXejdej�Z
ejddd
d�Zd�Zejdej�Zejdej�Zejdej�ZdWZd �Zddded!d"�Zddded#�ZGd$�d%�Zd&dXd'�Zdd(�Zejd)�ZddddYd*�Zdd+�Zddddd,�Zdd-�Z d.�Z!d/�Z"d0�Z#ddZdd1�Z$d2�Z%ddd[d\d3�Z&d4�Z'd5�Z(dd6�Z)d7�Z*dd8�Z+dd9�Z,id]d6d^d6d_d6Z-ejddd=�Z.da/d>�Z0d?�Z1d@�Z2dA�Z3dB�Z4dC�Z5dD�Z6ejdEej�Z7ejdFej�Z8ejdG�Z9iZ:ddH�Z;dI�Z<dJ�Z=dK�Z>dL�Z?dM�Z@dN�ZAdO�ZBiZCdddP�Z
eDdQkr�dRejEkptdSejEkZFdTejEko�dUejEkZGeHe
eGeF��ejId�ndS(`u8 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.

u
    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 !

u1.0.7iNudosuwin32uwin16uos2uNULu	/dev/nulluC(__libc_init)|(GLIBC_([0-9.]+))|(libc(_\w+)?\.so(?:\.(\d[0-9.]*))?)uicCs�ttjd�r'tjj|�}nt|d�}|j|�jd�}d}x+tj||�}|s�|j|�jd�}|s�Pnd}qWn|j	�\}}	}
}}}
|r�|r�d}n�|	r
|dkr�d}|
}qs|
|krs|
}qsni|rs|dkrsd}|
r=|
|kr=|
}n|rp|t
|�d�|krp||}qpqsn|j�}qW|j�||fS(u 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.

    urealpathurbulatin-1iulibcuglibcN(
uhasattruosupathurealpathuopenureadudecodeu_libc_searchusearchugroupsulenuenduclose(u
executableulibuversionu	chunksizeufubinaryuposumulibcinituglibcuglibcversionusouthreadsu	soversion((u//usr/local/python-3.2/lib/python3.2/platform.pyulibc_ver�s@
			#
cCs�tjjd�r�d}x�td�D]y}|j�}t|�dkr%|\}}nq%|dkrv|j�}q%|dkr%|jd�}|d}q%q%W|||fStjjd�rxYtd�D]H}|jd�}t|�dkr�|dd	kr�d	|d
|fSq�Wntjjd�r�tjd�}	xHt	t|	�d
dd�D]*}
|	|
dd
�dkr[|	|
=q[q[W|	r�|	j
�d}|	dd
d�}|||fSn|||fS(u� 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.

    u/var/adm/inst-log/infouSuSEiuMIN_DIST_VERSIONu
DIST_IDENTu-u/etc/.installediu	OpenLinuxiu/usr/lib/setupNiuslack-version-u	slackwarei����i����i����(uosupathuexistsuopenusplitulenustripuisdirulistdirurangeusort(udistnameuversionuidulineutvutaguvalueuvaluesupkguverfilesun((u//usr/local/python-3.2/lib/python3.2/platform.pyu_dist_try_harder�s:	
"#
u(\w+)[-_](release|version)u'(.+) release ([\d.]+)[^(]*(?:\((.+)\))?u1([^0-9]+)(?: release )?([\d.]+)[^(]*(?:\((.+)\))?uSuSEudebianufedorauredhatucentosumandrakeumandrivaurocksu	slackwareu	yellowdogugentoouUnitedLinuxu
turbolinuxcCs�d}d}tj|�}|dk	r7t|j��Stj|�}|dk	rbt|j��S|j�j�}|r�|d}t|�dkr�|d}q�nd||fS(Nuii(	u_lsb_release_versionumatchuNoneutupleugroupsu_release_versionustripusplitulen(u	firstlineuversionuidumul((u//usr/local/python-3.2/lib/python3.2/platform.pyu_parse_release_files
icCs&ytjd�}Wn"tjk
r7|||fSYnX|j�xd|D]L}tj|�}|dk	rI|j�\}}	||kr�|}Pq�qIqIWt|||�St	d|d��}
|
j
�}WdQXt|�\}}}
|r�|r�|}n|r
|}n|
r|
}n|||fS(u� 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.

    u/etcu/etc/urN(uosulistdiruerrorusortu_release_filenameumatchuNoneugroupsu_dist_try_harderuopenureadlineu_parse_release_file(udistnameuversionuidusupported_distsufull_distribution_nameuetcufileumu	_distnameudummyufu	firstlineu_versionu_id((u//usr/local/python-3.2/lib/python3.2/platform.pyulinux_distributions.

			cCst|||d|dd�S(uQ 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.

    usupported_distsufull_distribution_namei(ulinux_distribution(udistnameuversionuidusupported_dists((u//usr/local/python-3.2/lib/python3.2/platform.pyudistVscBsh|EeZdZdZdZdZdZddd�Zd�Z	d�Z
ejej
d�ZeZdS(u Fairly portable (alternative) popen implementation.

        This is mostly needed in case os.popen() is not available, or
        doesn't work as advertised, e.g. in Win9X GUI programs like
        PythonWin or IDLE.

        Writing to the pipe is currently not supported.

    uurcCsw|dkrtd��nddl}|j�|_}tj|d|�t|d�|_||_||_	dS(Nuru)popen()-emulation only supports read modeiu > %surb(
u
ValueErrorutempfileumktemputmpfileuosusystemuopenupipeubufsizeumode(uselfucmdumodeubufsizeutempfileutmpfile((u//usr/local/python-3.2/lib/python3.2/platform.pyu__init__xs	cCs
|jj�S(N(upipeuread(uself((u//usr/local/python-3.2/lib/python3.2/platform.pyuread�scCs |jdk	r|jj�SdS(N(ubufsizeuNoneupipeu	readlines(uself((u//usr/local/python-3.2/lib/python3.2/platform.pyu	readlines�scCsW|jr|jj�}nd}|jrSy||j�WqS|k
rOYqSXn|S(Ni�(upipeucloseutmpfile(uselfuremoveuerrorurc((u//usr/local/python-3.2/lib/python3.2/platform.pyuclose�s		
N(u__name__u
__module__u__doc__utmpfileuNoneupipeubufsizeumodeu__init__ureadu	readlinesuosuunlinkuerrorucloseu__del__(u
__locals__((u//usr/local/python-3.2/lib/python3.2/platform.pyu_popenhs

		u_popenurcCs�d}tjjdd�dkrRyddl}Wntk
rEYqRX|j}n|dkr�ttd�r�tj}tj	dkr�y|d�Wq�tj
k
r�t}Yq�Xq�q�t}n|dkr�|||�S||||�SdS(u! Portable popen() interface.
    uOSuu
Windows_NTiNupopenuwin32(uNoneuosuenvironugetu	win32pipeuImportErrorupopenuhasattrusysuplatformuerroru_popen(ucmdumodeubufsizeupopenu	win32pipe((u//usr/local/python-3.2/lib/python3.2/platform.pyupopen�s&
		
cCs�|jd�}|r%|j|�nytt|�}Wntk
rR|}YnXttt|��}dj|dd��}|S(u� Normalize the version and build strings and return a single
        version string using the format major.minor.build (or patchlevel).
    u.Ni(usplituappendumapuintu
ValueErrorulistustrujoin(uversionubuilduluintsustrings((u//usr/local/python-3.2/lib/python3.2/platform.pyu
_norm_version�s
u'(?:([\w ]+) ([\w.]+) .*\[.* ([\d.]+)\])c	Cshtj|kr|||fSx�dD]�}y:t|�}|j�}|j�rbtjd��nWnRtjk
r�}zw#WYdd}~Xq#tk
r�}zw#WYdd}~Xq#XPq#W|||fS|j�}t	j
|�}|dk	r[|j�\}}}|d	dkr)|dd
�}n|ddkrL|dd�}nt
|�}n|||fS(
u2 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 and OS/2. XXX Others too ?

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

    uverucommand /c veru
cmd /c verucommand failedNiu.(uverucommand /c veru
cmd /c veri����i����i����i����(usysuplatformupopenureaducloseuosuerroruIOErrorustripu_ver_outputumatchuNoneugroupsu
_norm_version(	usystemureleaseuversionusupported_platformsucmdupipeuinfouwhyum((u//usr/local/python-3.2/lib/python3.2/platform.pyu_syscmd_ver�s0


cCsbyddlm}Wn'tk
r=ddl}|j}YnXy|||�SWn|SYnXdS(ue Read a value for name from the registry key.

        In case this fails, default is returned.

    i(uRegQueryValueExN(uwin32apiuRegQueryValueExuImportErroruwinreguQueryValueEx(ukeyunameudefaultuRegQueryValueExuwinreg((u//usr/local/python-3.2/lib/python3.2/platform.pyu_win32_getvalues
c!CsYyTddl}ddlm}m}m}m}ddlm}	m}
m}m	}Wn�t
k
r�ytjWn"t
k
r�||||fSYnXXddl}
tj}|
j}|
j}|
j}|
j}	d}d}
d}d}d}YnX|�}|\}}}}}d|||d	@f}t|d
�rV|jdkr�d|j}q�n-|dd
�dkr�d|d
d�}n||krd}|dkr�|dkr�d}q�|dkr�d}q�|dkr�d}q�d}q�|dkr�d}q�n�||
kr�d}|dkr(d}q�|dkr||dkrId}q�|dkr^d}q�|dkrsd}q�d}q�|dkr�t|d �r�|j}nm|}yR||	|�}||d!�\}}||kr�|jd"�d.kr�|}nWntk
rYnX|dkr:||kr1d#}q�d$}q�|dkrd||kr[d%}q�d&}q�|dkr�||kr�d'}q�d(}q�d)}q�n)|s�d*||f}n||||fSy ||	|�}||d+�Wn||||fSYnXt|d,d/�d}t|d-|df�d}t||�}||�||||fS(0u  Get additional version information from the Windows Registry
        and return a tuple (version,csd,ptype) referring to version
        number, CSD level (service pack), and OS type (multi/single
        processor).

        As a hint: ptype returns 'Uniprocessor Free' on single
        processor NT machines and 'Multiprocessor Free' on multi
        processor machines. The 'Free' refers to the OS version being
        free of debugging code. It could also state 'Checked' which
        means the OS version uses debugging code, i.e. code that
        checks arguments, ranges, etc. (Thomas Heller).

        Note: this function works best with Mark Hammond's win32
        package installed, but also on Python 2.3 and later. It
        obviously only runs on Win32 compatible platforms.

    iN(uRegQueryValueExuRegOpenKeyExuRegCloseKeyuGetVersionEx(uHKEY_LOCAL_MACHINEuVER_PLATFORM_WIN32_NTuVER_PLATFORM_WIN32_WINDOWSuVER_NT_WORKSTATIONiiiu%i.%i.%ii��uservice_packuuSP%si
u
Service Pack uSPu)SOFTWARE\Microsoft\Windows\CurrentVersioniu95i
u98iZuMeupostMeiu2000u,SOFTWARE\Microsoft\Windows NT\CurrentVersionuNTuXPu
2003Serverupost2003iuproduct_typeuProductNameuServeruVistau
2008Serveru7u2008ServerR2u8u
2012Serverupost2012Serveru%i.%iu
SystemRootuCurrentBuildNumberuCurrentTypei����(ui(uwin32apiuRegQueryValueExuRegOpenKeyExuRegCloseKeyuGetVersionExuwin32conuHKEY_LOCAL_MACHINEuVER_PLATFORM_WIN32_NTuVER_PLATFORM_WIN32_WINDOWSuVER_NT_WORKSTATIONuImportErrorusysugetwindowsversionuAttributeErroruwinreguQueryValueExu	OpenKeyExuCloseKeyuhasattruservice_packuservice_pack_majoruproduct_typeufinduWindowsErroru_win32_getvalueu
_norm_version(ureleaseuversionucsduptypeuwin32apiuRegQueryValueExuRegOpenKeyExuRegCloseKeyuGetVersionExuHKEY_LOCAL_MACHINEuVER_PLATFORM_WIN32_NTuVER_PLATFORM_WIN32_WINDOWSuVER_NT_WORKSTATIONuwinregu
VER_NT_SERVERuREG_SZuwinverumajuminubuildnouplaturegkeyuproduct_typeukeyunameutypeu	keyCurVerubuild((u//usr/local/python-3.2/lib/python3.2/platform.pyu	win32_ver$s�"&

															!

						

c
Csmddlm}g}|j}xG|D]?}y|||��Wq&ttfk
rd||�Yq&Xq&W|S(Ni(ugestalt(u_gestaltugestaltuappenduRuntimeErroruOSError(u	selectorsudefaultugestaltuluappenduselector((u//usr/local/python-3.2/lib/python3.2/platform.pyu_mac_ver_lookup�s	
cCst|�dd�S(Ni(uhex(ubcd((u//usr/local/python-3.2/lib/python3.2/platform.pyu_bcd2str�sc	Csyddl}Wntk
r(dSYnXtd�\}}|r�|d@d?}|d@d?}|d	@}||fdkr�td�\}}}d|||f}q�dt|�||f}n|r�idd6dd6dd
6j|d�}nd}|||fS(u�
        Thanks to Mark R. Levinson for mailing documentation links and
        code examples for this function. Documentation for the
        gestalt() API is available online at:

           http://www.rgaros.nl/gestalt/
    iNusysvusysai�ii�iii
usys1usys2usys3u%i.%i.%iu%s.%i.%iu68kiuPowerPCiui386u(usysvusysa(i
i(usys1usys2usys3(uuu(u_gestaltuImportErroruNoneu_mac_ver_lookupu_bcd2struget(	u_gestaltusysvusysaumajoruminorupatchureleaseumachineuversioninfo((u//usr/local/python-3.2/lib/python3.2/platform.pyu_mac_ver_gestalt�s&	
	

cCs�d}tjj|�sdSyddl}Wntk
rDdSYnX|j|�}|d}d	}tj�d}|d
kr�d}n|||fS(Nu0/System/Library/CoreServices/SystemVersion.plistiuProductVersionuiuppcuPower MacintoshuPowerPC(uuu(uppcuPower Macintosh(uosupathuexistsuNoneuplistlibuImportErroru	readPlistuuname(ufnuplistlibuplureleaseuversioninfoumachine((u//usr/local/python-3.2/lib/python3.2/platform.pyu_mac_ver_xmls
	
	cCs?t�}|dk	r|St�}|dk	r2|S|||fS(u; 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 paramter values
        which default to ''. All tuple entries are strings.
    N(u_mac_ver_xmluNoneu_mac_ver_gestalt(ureleaseuversioninfoumachineuinfo((u//usr/local/python-3.2/lib/python3.2/platform.pyumac_vers		cCsTddlm}y'|j|�}|dkr2|S|SWntk
rO|SYnXdS(Ni(uSystem(u	java.languSystemugetPropertyuNoneuAttributeError(unameudefaultuSystemuvalue((u//usr/local/python-3.2/lib/python3.2/platform.pyu
_java_getprop/s
cCs�yddl}Wn"tk
r4||||fSYnXtd|�}td|�}|\}}}td|�}td|�}td|�}|||f}|\}}	}
td|
�}
td	|�}td
|	�}	||	|
f}||||fS(uV 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 '').

    iNujava.vendorujava.versionujava.vm.nameujava.vm.vendorujava.vm.versionujava.os.archujava.os.nameujava.os.version(u	java.languImportErroru
_java_getprop(ureleaseuvendoruvminfouosinfoujavauvm_nameu
vm_releaseu	vm_vendoruos_nameu
os_versionuos_arch((u//usr/local/python-3.2/lib/python3.2/platform.pyujava_ver:s"

cCs|dkrd|||fS|dkr�|dkrB|||fS|jd�}|r�yt|d�}Wntk
rYq�X|d}t|�|d<dj|�}n|dkr�d	}q
d	}nC|d
kr�d}|r�|d}q
d
}n|dkr
d}n|||fS(u� 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.

    uRhapsodyuMacOS X ServeruSunOSu5u.iiu6uSolarisuIRIX64uIRIXu (64bit)u64bituwin32uwin16uWindows(uwin32uwin16(usplituintu
ValueErrorustrujoin(usystemureleaseuversionulumajor((u//usr/local/python-3.2/lib/python3.2/platform.pyusystem_alias]s2	


		
		cGsdjd�tt|�D��}|jdd�}|jdd�}|jdd�}|jdd�}|jdd�}|jd	d�}|jd
d�}|jdd�}|jdd
�}x+|jdd�}||kr�Pn|}q�x$|ddkr|dd�}q�W|S(uq Helper to format the platform string in a filename
        compatible format e.g. "system-version-machine".
    u-css|]}|j�VqdS(N(ustrip(u.0ux((u//usr/local/python-3.2/lib/python3.2/platform.pyu	<genexpr>�su u_u/u\u:u;u"u(u)uunknownuu--iNi����i����(ujoinufilterulenureplace(uargsuplatformucleaned((u//usr/local/python-3.2/lib/python3.2/platform.pyu	_platform�s$"	cCsWyddl}Wntk
r(|SYnXy|j�SWn|jk
rR|SYnXdS(u8 Helper to determine the node name of this machine.
    iN(usocketuImportErrorugethostnameuerror(udefaultusocket((u//usr/local/python-3.2/lib/python3.2/platform.pyu_node�s
	cCsetjj|�}xLtjj|�r`tjjtjjtjj|�tj|���}qW|S(uT In case filepath is a symlink, follow it until a
        real file is reached.
    (uosupathuabspathuislinkunormpathujoinudirnameureadlink(ufilepath((u//usr/local/python-3.2/lib/python3.2/platform.pyu_follow_symlinks�s
	1cCs�tjdkr|Sytjd|tf�}Wnttjfk
rQ|SYnX|j�j�}|j	�}|s}|r�|S|SdS(u. Interface to the system's uname command.
    udosuwin32uwin16uos2uuname %s 2> %sN(udosuwin32uwin16uos2(
usysuplatformuosupopenuDEV_NULLuAttributeErroruerrorureadustripuclose(uoptionudefaultufuoutputurc((u//usr/local/python-3.2/lib/python3.2/platform.pyu
_syscmd_uname�s	
cCs�tjdkr|St|�}y+tjd|gdtjdtj�}Wnttj	fk
rk|SYnX|j
�djd	�}|j�}|s�|r�|S|Sd
S(u� 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.

    udosuwin32uwin16uos2ufileustdoutustderriulatin-1N(udosuwin32uwin16uos2(
usysuplatformu_follow_symlinksu
subprocessuPopenuPIPEuSTDOUTuAttributeErroruosuerrorucommunicateudecodeuwait(utargetudefaultuprocuoutputurc((u//usr/local/python-3.2/lib/python3.2/platform.pyu_syscmd_file�s		
u	WindowsPEuWindowsuMSDOScCs�|scddl}y|jd�}Wn$|jk
rK|jd�}YnXt|d�d}n|r{t|d�}nd}|r�|tjkr�tjtkr�ttj\}}|r�|}n|r�|}q�n||fSd|kr�||fSd	|krd
}n*d|kr$d}nd
|kr9d}nd|krNd}nTd|krxd|krod}q�d}n*d|kr�d}nd|kr�d}n||fS(u� 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.

    iNuPuliubituu
executableu32-bitu32bituN32un32bitu64-bitu64bituELFuPEuWindowsu	WindowsPEuCOFFuMS-DOSuMSDOS(	ustructucalcsizeuerrorustru_syscmd_fileusysu
executableuplatformu_default_architecture(u
executableubitsulinkageustructusizeufileoutubul((u//usr/local/python-3.2/lib/python3.2/platform.pyuarchitecturesL	

								cCs�d}tdk	rtSd}ytj�\}}}}}Wntk
rUd}YnX|s�ttd|||||f��rW|r�tj}d}d}t	�}d}nd}|dkrPt
�\}}}}	|r�|r�d}n|s/dtjkrtjjdd�}q/tjjdd�}n|sPtjjd|�}qPn|r�t
|�\}}}|dkr�d	}q�|d
kr�|d	kr�d	}d|dd
�kr�d}q�d}q�n|dkr|s�|dkr�d}q�d}nd	}qW|dd�dkrWt�\}}
}}d}dj|�}|sT|
}qTqWn|dkr�|sv|dkr�|}d}nyddl}
Wntk
r�Yq�X|
jdd�\}}|dkr�d}q�d}n|s�tdd�}n|dkr
d}n|dkr"d}n|dkr7d}n|dkrLd}n|dkrad}n|dkrvd}n|d
kr�|d	kr�d	}d}n||||||fatS(ui 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 ''.

    iuiuwin32uPROCESSOR_ARCHITEW6432uPROCESSOR_ARCHITECTUREuPROCESSOR_IDENTIFIERuMicrosoft WindowsuWindowsu	Microsoftu6.0NiuVistauwin16u32bitu16bitiujavauJavau, uOpenVMSu0uSYI$_CPUi�uAlphauVAXu-puunknown(uwin32uwin16(u_uname_cacheuNoneuosuunameuAttributeErrorulistufilterusysuplatformu_nodeu	win32_veruenvironugetu_syscmd_verujava_verujoinuvms_libuImportErrorugetsyiu
_syscmd_uname(uno_os_unameu	processorusystemunodeureleaseuversionumachineuuse_syscmd_verucsduptypeuvendoruvminfouosinfouvms_libucsidu
cpu_number((u//usr/local/python-3.2/lib/python3.2/platform.pyuunameXs�

+										
									cCst�dS(u� Returns the system/OS name, e.g. 'Linux', 'Windows' or 'Java'.

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

    i(uuname(((u//usr/local/python-3.2/lib/python3.2/platform.pyusystem�scCst�dS(u� Returns the computer's network name (which may not be fully
        qualified)

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

    i(uuname(((u//usr/local/python-3.2/lib/python3.2/platform.pyunode�scCst�dS(u� Returns the system's release, e.g. '2.2.0' or 'NT'

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

    i(uuname(((u//usr/local/python-3.2/lib/python3.2/platform.pyurelease�scCst�dS(u� Returns the system's release version, e.g. '#3 on degas'

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

    i(uuname(((u//usr/local/python-3.2/lib/python3.2/platform.pyuversion�scCst�dS(ut Returns the machine type, e.g. 'i386'

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

    i(uuname(((u//usr/local/python-3.2/lib/python3.2/platform.pyumachinescCst�dS(u 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.

    i(uuname(((u//usr/local/python-3.2/lib/python3.2/platform.pyu	processors
uB([\w.+]+)\s*\(#?([^,]+),\s*([\w ]+),\s*([\w :]+)\)\s*\[([^\]]+)\]?u;IronPython\s*([\d\.]+)(?: \(([\d\.]+)\))? on (.NET [\d\.]+)uE([\w.+]+)\s*\(#?([^,]+),\s*([\w ]+),\s*([\w :]+)\)\s*\[PyPy [^\]]+\]?cCs�|dkrtj}ntj|d�}|dk	r:|S|dd�dkr�d}tj|�}|dkr�tdt|���n|j	�\}}}d}d}nDtj
dd�dkr(d}tj|�}|dkrtd	t|���n|j	�\}}}}	}
tj
}n�d
|kr�d
}tj|�}|dkrntdt|���n|j	�\}}}}	d}nctj|�}|dkr�tdt|���n|j	�\}}}}	}d
}|d|	}t
td�rtj\}
}}n0t
td�r:tj\}
}}nd}d}|jd�}
t|
�dkr�|
jd�dj|
�}n|||||||f}|t|<|S(u� 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.

    Ni
u
IronPythonu*failed to parse IronPython sys.version: %suiujavauJythonu&failed to parse Jython sys.version: %suPyPyu$failed to parse PyPy sys.version: %su'failed to parse CPython sys.version: %suCPythonu u
_mercurialu
subversionu.iu0(uNoneusysuversionu_sys_version_cacheugetu_ironpython_sys_version_parserumatchu
ValueErrorureprugroupsuplatformu_sys_version_parseru_pypy_sys_version_parseruhasattru
_mercurialu
subversionusplitulenuappendujoin(usys_versionuresultunameumatchuversionualt_versionucompilerubuildnou	builddateu	buildtimeu_ubranchurevisionul((u//usr/local/python-3.2/lib/python3.2/platform.pyu_sys_version/sj		

cCst�dS(uR 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).

    i(u_sys_version(((u//usr/local/python-3.2/lib/python3.2/platform.pyupython_implementation�scCst�dS(u� 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).

    i(u_sys_version(((u//usr/local/python-3.2/lib/python3.2/platform.pyupython_version�scCstt�djd��S(u� 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).

    iu.(utupleu_sys_versionusplit(((u//usr/local/python-3.2/lib/python3.2/platform.pyupython_version_tuple�s	cCst�dS(u� 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.

    i(u_sys_version(((u//usr/local/python-3.2/lib/python3.2/platform.pyu
python_branch�scCst�dS(u� 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.

    i(u_sys_version(((u//usr/local/python-3.2/lib/python3.2/platform.pyupython_revision�scCst�dd�S(uh Returns a tuple (buildno, builddate) stating the Python
        build number and date as strings.

    ii(u_sys_version(((u//usr/local/python-3.2/lib/python3.2/platform.pyupython_build�scCst�dS(uS Returns a string identifying the compiler used for compiling
        Python.

    i(u_sys_version(((u//usr/local/python-3.2/lib/python3.2/platform.pyupython_compiler�sc
Cs[tj||fd�}|dk	r(|St�\}}}}}}||krXd}n|r|t|||�\}}}n|dkr�t|�\}	}
}}|r�t||�}
qGt||||�}
nw|d	krYtd�\}}}|r"|r"t||||d|||�}
qGtt	j
�\}}t||||d||�}
n�|dkr�t�\}}}\}}}|s�|r�t|||�}
qGt|||d|||�}
n�|dkr�|r�t||�}
qGt|||�}
nH|rt||�}
n0tt	j
�\}}t||||||�}
|
t||f<|
S(
u� 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.

    uuWindowsuLinuxuwithuJavauonuMacOSN(uLinux(
u_platform_cacheugetuNoneuunameusystem_aliasu	win32_veru	_platformudistulibc_verusysu
executableujava_veruarchitecture(ualiaseduterseuresultusystemunodeureleaseuversionumachineu	processorureluversucsduptypeuplatformudistnameudistversionudistidulibcnameulibcversionuruvuvminfouos_nameu
os_versionuos_archubitsulinkage((u//usr/local/python-3.2/lib/python3.2/platform.pyuplatform�sP	

u__main__uterseu--terseu
nonaliasedu--nonaliased(udosuwin32uwin16uos2(
uSuSEudebianufedorauredhatucentosumandrakeumandrivaurocksu	slackwareu	yellowdogugentoouUnitedLinuxu
turbolinuxi����(uwin32uwin16udosuos2(uuu(uuu(uuu(uu	WindowsPE(uuWindows(uuMSDOS(Ju__doc__u
__copyright__u__version__usysuosureu
subprocessudevnulluDEV_NULLuAttributeErroruplatformucompileuASCIIu_libc_searchu
executableulibc_veru_dist_try_harderu_release_filenameu_lsb_release_versionu_release_versionu_supported_distsu_parse_release_fileulinux_distributionudistu_popenupopenu
_norm_versionu_ver_outputu_syscmd_veru_win32_getvalueu	win32_veruNoneu_mac_ver_lookupu_bcd2stru_mac_ver_gestaltu_mac_ver_xmlumac_veru
_java_getpropujava_verusystem_aliasu	_platformu_nodeu_follow_symlinksu
_syscmd_unameu_syscmd_fileu_default_architectureuarchitectureu_uname_cacheuunameusystemunodeureleaseuversionumachineu	processoru_sys_version_parseru_ironpython_sys_version_parseru_pypy_sys_version_parseru_sys_version_cacheu_sys_versionupython_implementationupython_versionupython_version_tupleu
python_branchupython_revisionupython_buildupython_compileru_platform_cacheu__name__uargvuterseualiaseduprintuexit(((u//usr/local/python-3.2/lib/python3.2/platform.pyu<module>
s�d0

		3	0				4	6!
	2�		(		#	6	 	
T	�			
								_	
	
			
		
R
© 2025 GrazzMean