Hacked By AnonymousFox

Current Path : /lib64/python2.7/
Upload File :
Current File : //lib64/python2.7/platform.pyc

�
zfc@s�dZdZdZddlZddlZddlZddlZy
ejZWn/e	k
r�ej
d�krwd	Zq�d
ZnXi
dd6d
d6d
d6dd6dd6dd6dd6dd6dd6dd6Zejd�Z
d�Zejd�Zejdddd �Zd!�Zejd"�Zejd#�Zejd$�Zd�Zd3�Zddded4d5�Zddded6�Zd7d�d8��YZd9dd:�Zdd;�Zejd<�Zdddd�d=�Zid>d�6dAd�6dBd�6dDd�6dEd�6dGd�6dHd�6dId�6dKd�6dLd�6dMd�6Z idBd�6dNd�6dOd�6dPd�6dQd�6dRd�6Z!dS�Z"dddddT�Z#ddU�Z$dV�Z%dW�Z&dX�Z'dd�ddY�Z(dZ�Z)ddd�d�d[�Z*d\�Z+d]�Z,dd^�Z-e.ej/d_�s%ej/j0ej/j1ej2ej/j3d`�Z4nej/j5Z4da�Z6ddb�Z7ddc�Z8id�d6d�d6d�d6Z9ejdg�j:Z;ejdddh�Z<da=di�Z>dj�Z?dk�Z@dl�ZAdm�ZBdn�ZCdo�ZDejdp�ZEejdq�ZFejdr�ZGejds�ZHiZIddt�ZJdu�ZKdv�ZLdw�ZMdx�ZNdy�ZOdz�ZPd{�ZQiZRd@d@d|�Z
eSd}kr�d~ejTkp�dejTkZUd�ejTko�d�ejTkZVe
eVeU�GHejWd@�ndS(�s8 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.

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

s1.0.7i����Ntdostwin32twin16tos2tNULs	/dev/nulli
tdevitalphataitbetatbi(tci2tRCtrci�tpltps([0-9]+|[._+-])cCs�g}xxtj|�D]g}|dkryt|d�}d}Wn#tk
rftj|d�}nX|j||f�qqW|S(Ns._+-i
idi(t
_component_retsplittintt
ValueErrort_ver_stagestgettextend(tversiontresulttvtt((s /usr/lib64/python2.7/platform.pyt_comparable_version�s

sC(__libc_init)|(GLIBC_([0-9.]+))|(libc(_\w+)?\.so(?:\.(\d[0-9.]*))?)tic
Cst}ttjd�r-tjj|�}nt|d���}|j|�}d}x�|t|�krd|ks�d|kr�tj	||�}nd}|s�|j�t|�kr
|j|�}	|	r�|t|t|�d�|	}d}qWn|s
Pq
n|j
�\}
}}}
}}|
r>|r>d}n�|r�|dkr_d}|}q�||�||�kr�|}q�nv|
r�|dkr�d}|r�|s�||�||�kr�|}n|r�|t|�|kr�||}q�q�n|j�}qWWWdQX||fS(	s 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.

    trealpathtrbitlibctGLIBCi�tglibcN(RthasattrtostpathRtopentreadtlent_libc_searchtsearchtNonetendtmaxtgroups(t
executabletlibRt	chunksizetVtftbinarytpostmtchunktlibcinitR tglibcversiontsotthreadst	soversion((s /usr/lib64/python2.7/platform.pytlibc_ver�sH!
		%	cCs�tjjd�r�td�j�}d}x�|D]�}tj|�}t|�dkr1|\}}nq1|dkr�tj|�}q1|dkr1tj|d�}|d}q1q1W|||fStjjd�rAtd�j�}xV|D]K}tj|d�}	t|	�dkr�|	dd	kr�d	|	d
|fSq�Wntjj	d�r�tj
d�}
xBtt|
�d
dd�D]$}|
|d
 dkr|
|=qqW|
r�|
j�d}|
dd
}|||fSn|||fS(s� 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.

    s/var/adm/inst-log/infotSuSEitMIN_DIST_VERSIONt
DIST_IDENTt-s/etc/.installedit	OpenLinuxis/usr/lib/setupi����isslack-version-t	slackware(
R"R#texistsR$t	readlineststringRR&tstriptisdirtlistdirtrangetsort(tdistnameRtidtinfotlinettvttagtvaluetvaluestpkgtverfilestn((s /usr/lib64/python2.7/platform.pyt_dist_try_harder�s>	


"#
s(\w+)[-_](release|version)s'(.+) release ([\d.]+)[^(]*(?:\((.+)\))?s1([^0-9]+)(?: release )?([\d.]+)[^(]*(?:\((.+)\))?R<tdebiantfedoratredhattcentost	almalinuxtmandraketmandrivatrocksRAt	yellowdogtgentootUnitedLinuxt
turbolinuxcCs�d}d}tj|�}|dk	r7t|j��Stj|�}|dk	rbt|j��Stjtj|��}|r�|d}t	|�dkr�|d}q�nd||fS(NRii(
t_lsb_release_versiontmatchR)ttupleR,t_release_versionRDRRER&(t	firstlineRRKR4tl((s /usr/lib64/python2.7/platform.pyt_parse_release_file*s
icCs#ytjd�}Wntjk
r3|||fSX|j�xd|D]L}tj|�}|dk	rE|j�\}}	||kr�|}Pq�qEqEWt|||�St	d|d�}
|
j
�}|
j�t|�\}}}
|r�|r�|}n|r|}n|
r|
}n|||fS(s� 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.

    s/etcs/etc/trN(
R"RGterrorRIt_release_filenameRcR)R,RUR$treadlinetcloseRh(RJRRKtsupported_diststfull_distribution_nametetctfileR4t	_distnametdummyR1Rft_versiont_id((s /usr/lib64/python2.7/platform.pytlinux_distributionEs0

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

    RnRoi(Rv(RJRRKRn((s /usr/lib64/python2.7/platform.pytdist}st_popencBsbeZdZdZdZdZdZddd�Zd�Z	d�Z
ejej
d�ZeZRS(s 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.

    RRicCst|dkrtd�nddl}|j�|_}tj|d|�t|d�|_||_||_	dS(NRis)popen()-emulation only supports read modei����s > %sR(
RttempfiletmktempttmpfileR"tsystemR$tpipetbufsizetmode(tselftcmdRR~RyR{((s /usr/lib64/python2.7/platform.pyt__init__�s	cCs
|jj�S(N(R}R%(R�((s /usr/lib64/python2.7/platform.pyR%�scCs |jdk	r|jj�SdS(N(R~R)R}RC(R�((s /usr/lib64/python2.7/platform.pyRC�scCsV|jr|jj�}nd}|jrRy||j�WqR|k
rNqRXn|S(Ni�(R}RmR{(R�tremoveRjR((s /usr/lib64/python2.7/platform.pyRm�s		
N(t__name__t
__module__t__doc__R{R)R}R~RR�R%RCR"tunlinkRjRmt__del__(((s /usr/lib64/python2.7/platform.pyRx�s
		RicCs�d}tjjdd�dkrQyddl}Wntk
rDqQX|j}n|dkr�ttd�r�tj}tj	dkr�y|d�Wq�tj
k
r�t}q�Xq�q�t}n|dkr�|||�S||||�SdS(s! Portable popen() interface.
    tOSRt
Windows_NTi����NtpopenR(R)R"tenvironRt	win32pipetImportErrorR�R!tsystplatformRjRx(R�RR~R�R�((s /usr/lib64/python2.7/platform.pyR��s&
		
cCs~tj|d�}|r(|j|�nytt|�}Wntk
rT|}nXtt|�}tj|d d�}|S(s� Normalize the version and build strings and return a single
        version string using the format major.minor.build (or patchlevel).
    t.i(RDRtappendtmapRRtstrtjoin(RtbuildRgtintststrings((s /usr/lib64/python2.7/platform.pyt
_norm_version�s

s'(?:([\w ]+) ([\w.]+) .*\[.* ([\d.]+)\])c	Cs8tj|kr|||fSx�dD]o}y7t|�}|j�}|j�r_tjd�nWn.tjk
r{}q#q#tk
r�}q#q#XPq#W|||fStj	|�}t
j|�}|dk	r+|j
�\}}}|ddkr�|d }n|ddkr|d }nt|�}n|||fS(	s2 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.

    tverscommand /c vers
cmd /c verscommand failedi����R�(R�scommand /c vers
cmd /c verN(R�R�R�R%RmR"RjtIOErrorRDREt_ver_outputRcR)R,R�(	R|treleaseRtsupported_platformsR�R}RLtwhyR4((s /usr/lib64/python2.7/platform.pyt_syscmd_vers0




t2000iitXPt
2003Serveritpost2003tVistait7t8s8.1ispost8.1t10tpost10t
2008Servert2008ServerR2t
2012Servert2012ServerR2tpost2012ServerR2cs
|dks$|dkr1|dkr1|||fSddlm}m}m}m}m}m}m}	ddlm	�m
}
d|f�fd��Y�d|	f�fd	��Y}|d
�}|d�}
d}}x]||kr4|d9}||�}|j|
|j�|t
|��}|s�|||fSq�W|
j|d�}|sZ|||fS||�}|
j|d||�s�|r�|||fS|�}|
j|d
||�|����s�|||fS|jjd?}|jjd@}|jjd?}|||fS(Niii����(tc_buffertPOINTERtbyreftcreate_unicode_buffert	StructuretWinDLLt_Pointer(tDWORDtHANDLEtVS_FIXEDFILEINFOcs�eZd�fd�fd�fd�fd�fd�fd�fd�fd�fd	�fd
�fd�fd�fg
ZRS(
tdwSignaturetdwStrucVersiontdwFileVersionMStdwFileVersionLStdwProductVersionMStdwProductVersionLStdwFileFlagsMasktdwFileFlagstdwFileOSt
dwFileTypet
dwFileSubtypetdwFileDateMStdwFileDateLS(R�R�t_fields_((R�(s /usr/lib64/python2.7/platform.pyR�^s												tPVS_FIXEDFILEINFOcseZ�ZRS((R�R�t_type_((R�(s /usr/lib64/python2.7/platform.pyR�nstkernel32Ri�Rii��(tctypesR�R�R�R�R�R�R�tctypes.wintypesR�R�tGetModuleFileNameWt_handleR&tGetFileVersionInfoSizeWR)tGetFileVersionInfoWtVerQueryValueWtcontentsR�R�(tmajtminR�R�R�R�R�R�R�R�R�R�R�Rtname_lent
actual_lentnametsizet	ver_blocktpvi((R�R�s /usr/lib64/python2.7/platform.pyt_get_real_winverVs<$
4



	'
cCsyddlm}Wntk
r4||||fSXy&ddlm}m}m}m}Wn3tk
r�ddlm}m}m}m}nX|�}	t	|	d �\}
}}dj
|
||�}tj|
|f�p�tj|
df�p�|}|	d |
|fkr\ydj
|	j�}Wq\tk
rX|d d	krYd
|d}qYq\Xnt|	dd�dkr�tj|
|f�p�tj|
df�p�|}nd}
z4y&||d�}
||
d
�d}WnnXWd|
r�||
�nX||||fS(Ni����(tgetwindowsversion(t	OpenKeyExtQueryValueExtCloseKeytHKEY_LOCAL_MACHINEis{0}.{1}.{2}isSP{}i
s
Service Pack tSPtproduct_types,SOFTWARE\Microsoft\Windows NT\CurrentVersiontCurrentTypei(R�R�R�twinregR�R�R�R�t_winregR�tformatt_WIN32_CLIENT_RELEASESRR)tservice_pack_majortAttributeErrortgetattrt_WIN32_SERVER_RELEASES(R�RtcsdtptypeR�R�R�R�R�twinverR�R�R�tkey((s /usr/lib64/python2.7/platform.pyt	win32_ver�sF
&
&	
		cCs{ddlm}ddl}g}|j}xI|D]A}y|||��Wq2t|jfk
rr||�q2Xq2W|S(Ni����(tgestalt(R�tMacOSR�tRuntimeErrortError(t	selectorstdefaultR�R�RgR�tselector((s /usr/lib64/python2.7/platform.pyt_mac_ver_lookup�s	
cCst|�dS(Ni(thex(tbcd((s /usr/lib64/python2.7/platform.pyt_bcd2str�sc
Csyddl}ddl}Wntk
r0dSXtd�\}}|r�|d@d?}|d@d?}|d	@}||fdkr�td�\}}}d|||f}q�dt|�||f}n|r�idd6dd6dd
6j|d�}nd}	||	|fS(s�
        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/
    i����Ntsysvtsysai�ii�iii
tsys1tsys2tsys3s%i.%i.%is%s.%i.%it68kitPowerPCiti386R(R�R�(i
i(R�R�R�(RRR(R�R�R�R)R�R�R(
R�R�R�R�tmajortminortpatchR�tmachinetversioninfo((s /usr/lib64/python2.7/platform.pyt_mac_ver_gestalt�s(	


cCs�d}tjj|�sdSyddl}Wntk
r@dSX|j|�}|d}d	}tj�d}|d
kr�d}n|||fS(Ns0/System/Library/CoreServices/SystemVersion.plisti����tProductVersionRitppcsPower MacintoshR(RRR(R
sPower Macintosh(R"R#RBR)tplistlibR�t	readPlisttuname(tfnRR
R�RR((s /usr/lib64/python2.7/platform.pyt_mac_ver_xml�s

	cCs?t�}|dk	r|St�}|dk	r2|S|||fS(s< 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(RR)R(R�RRRL((s /usr/lib64/python2.7/platform.pytmac_vers		cCsPddlm}y'|j|�}|dkr2|S|SWntk
rK|SXdS(Ni����(tSystem(t	java.langRtgetPropertyR)R�(R�R�RRP((s /usr/lib64/python2.7/platform.pyt
_java_getprop*s
cCs�yddl}Wntk
r0||||fSXtd|�}td|�}|\}}}td|�}td|�}td|�}|||f}|\}}	}
td|
�}
td	|�}td
|	�}	||	|
f}||||fS(sV 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 '').

    i����Nsjava.vendorsjava.versionsjava.vm.namesjava.vm.vendorsjava.vm.versionsjava.os.archsjava.os.namesjava.os.version(RR�R(R�tvendortvminfotosinfotjavatvm_namet
vm_releaset	vm_vendortos_namet
os_versiontos_arch((s /usr/lib64/python2.7/platform.pytjava_ver5s"

cCs|dkrd|||fS|dkr�|dkrB|||fStj|d�}|r�yt|d�}Wntk
r�q�X|d}t|�|d<tj|d�}n|dkr�d	}qd	}nC|d
kr�d}|r�|d}qd
}n|dkrd}n|||fS(s� 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.

    tRhapsodysMacOS X ServertSunOSt5R�iit6tSolaristIRIX64tIRIXs (64bit)t64bitRRtWindows(RR(RDRRRR�R�(R|R�RRgR((s /usr/lib64/python2.7/platform.pytsystem_aliasXs2	


		
		cGs&tjttjtt|��d�}tj}||dd�}||dd�}||dd�}||dd�}||dd�}||dd�}||d	d�}||d
d�}||dd�}x,||d
d�}||kr�Pn|}q�Wx|ddkr!|d }qW|S(sq Helper to format the platform string in a filename
        compatible format e.g. "system-version-machine".
    R?t t_t/s\t:t;t"t(t)tunknownRs--i����(RDR�R�REtfilterR&treplace(targsR�R4tcleaned((s /usr/lib64/python2.7/platform.pyt	_platform�s,			
cCsOyddl}Wntk
r$|SXy|j�SWn|jk
rJ|SXdS(s8 Helper to determine the node name of this machine.
    i����N(tsocketR�tgethostnameRj(R�R8((s /usr/lib64/python2.7/platform.pyt_node�s
tabspathcCs+||�s!||�|�}n||�S(N((R#tisabsR�tgetcwdtnormpath((s /usr/lib64/python2.7/platform.pyt_abspath�scCs_t|�}xLtjj|�rZtjjtjjtjj|�tj|���}qW|S(sT In case filepath is a symlink, follow it until a
        real file is reached.
    (R?R"R#tislinkR>R�tdirnametreadlink(tfilepath((s /usr/lib64/python2.7/platform.pyt_follow_symlinks�s
	1cCs�tjdkr|Sytjd|tf�}Wnttjfk
rM|SXtj|j	��}|j
�}|s||r�|S|SdS(s. Interface to the system's uname command.
    RRRRsuname %s 2> %sN(RRRR(R�R�R"R�tDEV_NULLR�RjRDRER%Rm(toptionR�R1toutputR((s /usr/lib64/python2.7/platform.pyt
_syscmd_uname�s
cCs�ddl}tjdkr|St|�}y+|jd|gd|jd	|j�}Wnttj	fk
rs|SX|j
�d
}|j�}|s�|r�|S|SdS(s& Interface to the system's file command.

        The function uses the -b option of the file command to have it
        ommit the filename in its output and if possible the -L option
        to have the command follow symlinks. It returns default in
        case the command should fail.

    i����NRRRRRqtstdouttstderri(RRRR(t
subprocessR�R�RDtPopentPIPEtSTDOUTR�R"Rjtcommunicatetwait(ttargetR�RKtprocRGR((s /usr/lib64/python2.7/platform.pyt_syscmd_file�s
t	WindowsPER(tMSDOSs[\s,]c	Cs�|sbddl}y|jd�}Wn#|jk
rJ|jd�}nXt|d�d}n|rzt|d�}nd}|r�|tjkr�tjtkr�ttj\}}|r�|}n|r�|}q�n||fSt	|�d}d	|kr	||fSd
|krd}n*d|kr3d
}nd|krHd}nd|kr]d}nTd|kr�d|kr~d}q�d}n*d|kr�d}nd|kr�d}n||fS(s� 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.

    i����NtPRgitbitRiR-s32-bitt32bittN32tn32bits64-bitR'tELFtPER(RTtCOFFsMS-DOSRU(
tstructtcalcsizeRjR�RSR�R-R�t_default_architecturet_architecture_split(	R-tbitstlinkageR^R�RGR	Rgtfileout((s /usr/lib64/python2.7/platform.pytarchitecture)sN	

								cCs�d}tdk	rtSd}ytj�\}}}}}Wntk
rTd}nX|sztd|||||f�rG|r�tj}d}d}t�}d}nd}|dkrIt	�\}}}}	|r�|r�d}n|s(dtj
krtj
jdd�}q(tj
jdd�}n|sItj
jd|�}qIn|r�t|�\}}}|dkryd	}q�|d
kr�|d	kr�d	}d|d kr�d
}q�d}q�n|dkr�|s�|dkr�d}q�d}nd	}qG|d dkrGt
�\}}
}}d}tj|d�}|sD|
}qDqGn|dkr�|sf|dkru|}d}nyddl}
Wntk
r�q�X|
jdd�\}}|dkr�d}q�d}n|s�tdd�}n|dkr�d}n|dkrd}n|dkr&d}n|dkr;d}n|dkrPd}n|dkred}n|d
kr�|d	kr�d	}d
}n||||||fatS( si 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 ''.

    iRiRtPROCESSOR_ARCHITEW6432tPROCESSOR_ARCHITECTUREtPROCESSOR_IDENTIFIERsMicrosoft WindowsR(t	Microsofts6.0iR�RRXt16bitiRtJavas, tOpenVMSt0i����NsSYI$_CPUi�tAlphatVAXs-pR2(RR(t_uname_cacheR)R"R
R�R3R�R�R:R�R�RR�RRDR�tvms_libR�tgetsyiRH(tno_os_unamet	processorR|tnodeR�RRtuse_syscmd_verR�R�RRRRqtcsidt
cpu_number((s /usr/lib64/python2.7/platform.pyR
�s�


%										
									cCst�dS(s� Returns the system/OS name, e.g. 'Linux', 'Windows' or 'Java'.

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

    i(R
(((s /usr/lib64/python2.7/platform.pyR|scCst�dS(s� Returns the computer's network name (which may not be fully
        qualified)

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

    i(R
(((s /usr/lib64/python2.7/platform.pyRuscCst�dS(s� Returns the system's release, e.g. '2.2.0' or 'NT'

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

    i(R
(((s /usr/lib64/python2.7/platform.pyR�scCst�dS(s� Returns the system's release version, e.g. '#3 on degas'

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

    i(R
(((s /usr/lib64/python2.7/platform.pyR'scCst�dS(st Returns the machine type, e.g. 'i386'

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

    i(R
(((s /usr/lib64/python2.7/platform.pyR0scCst�dS(s 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(R
(((s /usr/lib64/python2.7/platform.pyRt9s
sL([\w.+]+)\s*\(#?([^,]+)(?:,\s*([\w ]*)(?:,\s*([\w :]*))?)?\)\s*\[([^\]]+)\]?s;IronPython\s*([\d\.]+)(?: \(([\d\.]+)\))? on (.NET [\d\.]+)sU([\d.]+)\s*\(IronPython\s*[\d.]+\s*\(([\d.]+)\) on ([\w.]+ [\d.]+(?: \(\d+-bit\))?)\)sE([\w.+]+)\s*\(#?([^,]+),\s*([\w ]+),\s*([\w :]+)\)\s*\[PyPy [^\]]+\]?cCs�|dkrtj}ntj|d�}|dk	r:|Sd|kr�d}|jd�rmtj|�}ntj|�}|dkr�t	dt
|���n|j�\}}}d}d}nptjjd�rMd}t
j|�}|dkrt	dt
|���n|j�\}}}}	}
|dkrAd}ntj}n�d|kr�d}tj|�}|dkr�t	dt
|���n|j�\}}}}	d}n�t
j|�}|dkr�t	d	t
|���n|j�\}}}}	}d
}|dkrd}n|	r5|d|	}nttd�rYtj\}
}}nd}d}tj|d
�}
t|
�dkr�|
jd�tj|
d
�}n|||||||f}|t|<|S(s� 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.

    t
IronPythons*failed to parse IronPython sys.version: %sRRtJythons&failed to parse Jython sys.version: %stPyPys$failed to parse PyPy sys.version: %ss'failed to parse CPython sys.version: %stCPythonR*t
subversionR�iRmN(R)R�Rt_sys_version_cacheRt
startswitht_ironpython_sys_version_parserRct _ironpython26_sys_version_parserRtreprR,R�t_sys_version_parsert_pypy_sys_version_parserR!R}RDRR&R�R�(tsys_versionRR�RcRtalt_versiontcompilertbuildnot	builddatet	buildtimeR+tbranchtrevisionRg((s /usr/lib64/python2.7/platform.pyt_sys_versioncst				

cCst�dS(sR 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(R�(((s /usr/lib64/python2.7/platform.pytpython_implementation�scCst�dS(s� 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(R�(((s /usr/lib64/python2.7/platform.pytpython_version�scCsttjt�dd��S(s� 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).

    iR�(RdRDRR�(((s /usr/lib64/python2.7/platform.pytpython_version_tuple�s	cCst�dS(s� 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(R�(((s /usr/lib64/python2.7/platform.pyt
python_branch�scCst�dS(s� 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(R�(((s /usr/lib64/python2.7/platform.pytpython_revision�scCst�dd!S(sh Returns a tuple (buildno, builddate) stating the Python
        build number and date as strings.

    ii(R�(((s /usr/lib64/python2.7/platform.pytpython_buildscCst�dS(sS Returns a string identifying the compiler used for compiling
        Python.

    i(R�(((s /usr/lib64/python2.7/platform.pytpython_compilersc	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(
s� 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.

    RR(tLinuxtwithRktonR�N(R�(
t_platform_cacheRR)R
R)R�R7RwR;R�R-RRe(taliasedtterseRR|RuR�RRRttreltversR�R�R�RJtdistversiontdistidtlibcnametlibcversionRiRRRRRRbRc((s /usr/lib64/python2.7/platform.pyR�sP	

t__main__R�s--terset
nonaliaseds--nonaliased(RRRR(R<RVRWRXRYRZR[R\R]RAR^R_R`Ra((RRRR(ii(ii(ii(iN(ii(ii(ii(ii(iN(i
i(i
N(ii(ii(ii(ii(ii(iN(RRR(RRR(RRR(RRT(RR((RRU(XR�t
__copyright__t__version__R�RDR"tretdevnullRER�R�RtcompileRRR'R-R;RURkRbRet_supported_distsRhRvRwRxR)R�R�R�R�R�R�R�R�R�R�RRRRRR)R7R:R!R#R<R�R=R>R?R;RDRHRSR`RRaReRpR
R|RuR�RRRtR�R�R�R�R~R�R�R�R�R�R�R�R�R�R�targvR�R�texit(((s /usr/lib64/python2.7/platform.pyt<module>
s�h0

	
	8	2		5	6"
	2

	=/
		)		#	6	$	3
W	�			
											g	
	
			
		
R

Hacked By AnonymousFox1.0, Coded By AnonymousFox