Lc@sdZdZdZddkZddkZddkZddkZeidZei ddddZ d Z eid Z eid Z eid ZdZZdZdZdddeddZdddedZdd[d YZd!dd"Zdd#Zeid$Zdddd\d)Zdd*Zddddd+Zdd,Zd-Zd.Zd/Zdd]dd0Z d1Z!ddd^d_d2Z"d3Z#d4Z$dd5Z%e&ei'd6p.ei'i(ei'i)ei*ei'i+d7Z,n ei'i-Z,d8Z.dd9Z/dd:Z0hd`d%6dad&6dbd'6Z1eid>i2Z3ei ddd?Z4da5d@Z6dAZ7dBZ8dCZ9dDZ:dEZ;dFZ<eidGZ=eidHZ>eidIZ?hZ@ddJZAdKZBdLZCdMZDdNZEdOZFdPZGdQZHdRZIhZJdSdSdTZKeLdUjo]dVeiMjp dWeiMjZNdXeiMjo dYeiMjZOeKeOeNGHeiPdSndS(cs8 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.6iNsC(__libc_init)|(GLIBC_([0-9.]+))|(libc(_\w+)?\.so(?:\.(\d[0-9.]*))?)ticCsttidotii|}nt|d}|i|}d}x,ti||}|p(|i|}|pPnd}qPn|i\}} } } } } |o| o d}n| o8|djod}| }qm| |jo | }qmng| o_|djoNd}| |jo | }n| o&|t |  | jo|| }qiqmn|i }qP|i ||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. trealpathtrbitlibctglibc( thasattrtostpathRtopentreadt _libc_searchtsearchtgroupstlentendtclose(t executabletlibtversiont chunksizetftbinarytpostmtlibcinitRt glibcversiontsotthreadst soversion((s /usr/lib64/python2.6/platform.pytlibc_ver}s@        c Cstiidotdi}d}x|D]}ti|}t|djo|\}}nq2|djoti|}q2|djo ti|d}|d}q2q2W|||fStiidootdi}xZ|D]N}ti|d} t| djo#| dd jod | d |fSqWntii d oti d } xDt t| d d d D]&} | | d djo | | =qqW| o,| i 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/setupiisslack-version-t slackware( RRtexistsRt readlineststringtsplitR tstriptisdirtlistdirtrangetsort( tdistnameRtidtinfotlinettvttagtvaluetvaluestpkgtverfilestn((s /usr/lib64/python2.6/platform.pyt_dist_try_hardersD   $ s(\w+)[-_](release|version)s'(.+) release ([\d.]+)[^(]*(?:\((.+)\))?s1([^0-9]+)(?: release )?([\d.]+)[^(]*(?:\((.+)\))?RtdebiantfedoratredhattcentostmandraketmandrivatrocksR#t yellowdogtgentoot UnitedLinuxt turbolinuxcCsd}d}ti|}|dj ot|iSti|}|dj ot|iStiti|}|o/|d}t |djo|d}qnd||fS(NRii( t_lsb_release_versiontmatchtNonettupleR t_release_versionR&R'R(R (t firstlineRR.Rtl((s /usr/lib64/python2.6/platform.pyt_parse_release_files   cCsxdd fdd!d d"d d#dd$dd%dd&dd'dd(D]4\}}t|}||jo||fGHqUqUWdS()NsSuSE Linux 9.3 (x86-64)s SuSE Linux s9.3sx86-64sSUSE LINUX 10.1 (X86-64)s SUSE LINUX s10.1sX86-64sSUSE LINUX 10.1 (i586)ti586s Fedora Core release 5 (Bordeaux)s Fedora Coret5tBordeauxs"Red Hat Linux release 8.0 (Psyche)s Red Hat Linuxs8.0tPsyches Red Hat Linux release 9 (Shrike)t9tShrikes+Red Hat Enterprise Linux release 4 (Nahant)sRed Hat Enterprise Linuxt4tNahantsCentOS release 4tCentOSsRocks release 4.2.1 (Cydonia)tRockss4.2.1tCydonia(s SuSE Linux s9.3sx86-64(s SUSE LINUX s10.1sX86-64(s SUSE LINUX s10.1RL(s Fedora CoreRMRN(s Red Hat Linuxs8.0RO(s Red Hat LinuxRPRQ(sRed Hat Enterprise LinuxRRRS(RTRRN(RUs4.2.1RV(RFRK(tinputtoutputtparsed((s /usr/lib64/python2.6/platform.pyt_test_parse_release_files           ic Cs0ytid}Wn tij o|||fSX|ixh|D]P}ti|}|dj o.|i\}} ||jo |}PqqGqGWt|||St d|d} | i } | i t | \}} } |o|o |}n| o | }n| o | }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( RR*terrorR,t_release_filenameRERFR R8RtreadlineRRK(R-RR.tsupported_diststfull_distribution_nametetctfileRt _distnametdummyRRIt_versiont_id((s /usr/lib64/python2.6/platform.pytlinux_distribution%s2         cCst|||d|ddS(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. R_R`i(Rg(R-RR.R_((s /usr/lib64/python2.6/platform.pytdist]st_popencBsbeZdZdZdZdZdZdddZdZ dZ e i e i dZeZRS(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. RR[cCsv|djo tdnddk}|i|_}ti|d|t|d|_||_||_ dS(NR[s)popen()-emulation only supports read modeis > %sR( t ValueErrorttempfiletmktempttmpfileRtsystemRtpipetbufsizetmode(tselftcmdRqRpRkRm((s /usr/lib64/python2.6/platform.pyt__init__s    cCs |iiS(N(RoR (Rr((s /usr/lib64/python2.6/platform.pyR scCs"|idj o|iiSdS(N(RpRFRoR%(Rr((s /usr/lib64/python2.6/platform.pyR%scCs\|io|ii}nd}|io+y||iWqX|j oqXXn|S(Ni(RoRRm(RrtremoveR\trc((s /usr/lib64/python2.6/platform.pyRs   N(t__name__t __module__t__doc__RmRFRoRpRqRtR R%RtunlinkR\Rt__del__(((s /usr/lib64/python2.6/platform.pyRios   R[c Csd}tiidddjo3yddk}Wntj oqUX|i}n|djohttdoNti}ti djo1y|dWqti j o t }qXqqt }n|djo|||S||||SdS(s! Portable popen() interface. tOSRt Windows_NTiNtpopentwin32( RFRtenvirontgett win32pipet ImportErrorR~RtsystplatformR\Ri(RsRqRpR~R((s /usr/lib64/python2.6/platform.pyR~s&     cCsti|d}|o|i|nytt|}Wntj o |}nXtt|}ti|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(R&R'tappendtmaptintRjtstrtjoin(RtbuildRJtintststrings((s /usr/lib64/python2.6/platform.pyt _norm_versions s((?:([\w ]+) ([\w.]+) .*Version ([\d.]+))Rtwin16tdostos2c CsFti|jo|||fSxdD]u}y9t|}|i}|iotidnWn2tij o }q%q%tj o }q%q%XPq%W|||fSti |}t i |}|dj oc|i \}}}|ddjo|d }n|ddjo|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 failediR(Rscommand /c vers cmd /c verN(RRR~R RRR\tIOErrorR&R(t _ver_outputRERFR R( RntreleaseRtsupported_platformsRsRoR/twhyR((s /usr/lib64/python2.6/platform.pyt _syscmd_vers2     c Cs_yddkl}Wn(tj oddk}|i}nXy|||SWn|SXdS(se Read a value for name from the registry key. In case this fails, default is returned. i(tRegQueryValueExN(twin32apiRRt_winregt QueryValueEx(tkeytnametdefaultRR((s /usr/lib64/python2.6/platform.pyt_win32_getvalues cCsNyTddk}ddkl}l}l}l}ddkl} l} l} l } Wnt j oy t i Wn t j o||||fSXddk} t i }| i}| i}| i}| i} d} d} d} d}d}nX|}|\}}}}}d|||d @f}t|d o%|id jod |i}q|n$|d djod|d }n|| jo}d}|djoO|djo d}q|djo d}q|djo d}qd}q|djo d}qn|| jo~d}|djo d}q|djoO|djo d}q|djo d}q|djo d}qd}q|d jot|d!o |i}nr| }yU|| |}||d"\}}||jo |id#djo |}nWntj onX|djo!|| jo d$}qd%}q|djo!|| jo d&}qd'}qd(}qn,|pd)||f}n||||fSy || |}||d*Wn||||fSXt|d+d-d}t|d,|dfd}t||}||||||fS(.s Get additional version information from the Windows Registry and return a tuple (version,csd,ptype) referring to version number, CSD level 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(Rt RegOpenKeyExt RegCloseKeyt GetVersionEx(tHKEY_LOCAL_MACHINEtVER_PLATFORM_WIN32_NTtVER_PLATFORM_WIN32_WINDOWStVER_NT_WORKSTATIONiiis%i.%i.%iit service_packRsSP%si s Service Pack tSPs)SOFTWARE\Microsoft\Windows\CurrentVersioniit95i t98iZtMetpostMeit2000s,SOFTWARE\Microsoft\Windows NT\CurrentVersiontNTtXPt 2003Servertpost2003it product_typet ProductNametServertVistat 2008Servert7t 2008ServerR2tpost2008Servers%i.%it SystemRoottCurrentBuildNumbert CurrentType(Ri(RRRRRtwin32conRRRRRRtgetwindowsversiontAttributeErrorRRt OpenKeyExtCloseKeyRRtservice_pack_majorRtfindt WindowsErrorRR(RRtcsdtptypeRRRRRRRRRRt VER_NT_SERVERtREG_SZtwinvertmajtmintbuildnotplattregkeyRRRttypet keyCurVerR((s /usr/lib64/python2.6/platform.pyt win32_ver"s "&                                #          c Cs}ddkl}ddk}g}|i}xK|D]C}y|||Wq2t|ifj o||q2Xq2W|S(Ni(tgestalt(RtMacOSRt RuntimeErrortError(t selectorsRRRRJRtselector((s /usr/lib64/python2.6/platform.pyt_mac_ver_lookups  cCst|dS(Ni(thex(tbcd((s /usr/lib64/python2.6/platform.pyt_bcd2strsc Cs yddk}ddk}Wntj odSXtd\}}|o|d@d?}|d@d?}|d @}||fdjo,td\}}}d|||f}qdt|||f}n|o+hdd6dd6dd 6i|d}n|t|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/ iNtsysvtsysaiiiiii tsys1tsys2tsys3s%i.%i.%is%s.%i.%it68kitPowerPCiti386R(ssysvssysa(i i(RRR(RRRRFRRRt versioninfo( RRRRtmajortminortpatchRtmachine((s /usr/lib64/python2.6/platform.pyt_mac_ver_gestalts&    cCsd}tii|pdSyddk}Wntj odSX|i|}|d}d }tid}|d jo d}n|||fS( Ns0/System/Library/CoreServices/SystemVersion.plistitProductVersionRitppcsPower MacintoshR(RRR(RsPower Macintosh(RRR$RFtplistlibRt readPlisttuname(tfnRtplRRR((s /usr/lib64/python2.6/platform.pyt _mac_ver_xmls   cCsCt}|dj o|St}|dj o|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 paramter values which default to ''. All tuple entries are strings. N(RRFR(RRRR/((s /usr/lib64/python2.6/platform.pytmac_ver s    cCsTddkl}y)|i|}|djo|S|SWntj o|SXdS(Ni(tSystem(t java.langRt getPropertyRFR(RRRR3((s /usr/lib64/python2.6/platform.pyt _java_getprop&s c Csyddk}Wn tj o||||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 ''). iNs java.vendors java.versions java.vm.namesjava.vm.vendorsjava.vm.versions java.os.archs java.os.namesjava.os.version(RRR( Rtvendortvminfotosinfotjavatvm_namet vm_releaset vm_vendortos_namet os_versiontos_arch((s /usr/lib64/python2.6/platform.pytjava_ver1s" cCs1|djod|||fS|djo|djo|||fSti|d}|oZyt|d}Wntj oqX|d}t||d /dev/nullN(Rswin32swin16R( RRRR~RR\R&R(R R(toptionRRRXRv((s /usr/lib64/python2.6/platform.pyt _syscmd_unames cCstid jo|St|idd}ytid|}Wnttifj o|SXti |i }|i }| p|o|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. RRRRRs\"sfile "%s" 2> /dev/nullN(sdosswin32swin16sos2( RRR'RRR~RR\R&R(R R(ttargetRRRXRv((s /usr/lib64/python2.6/platform.pyt _syscmd_files  t WindowsPER tMSDOSs[\s,]c Cs|p_ddk}y|id}Wn%|ij o|id}nXt|dd}n|ot|d}nd}| od|tijoTtitjo9tti\}}|o |}n|o |}qn||fSt |d}d |jo ||fSd |jo d }n/d |jo d }nd|jo d}nd|jo d}n]d|jo!d|jo d}qd}n/d|jo d}nd|jo 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. iNtPRJitbitRiRs32-bitt32bittN32tn32bits64-bitR tELFtPER R,tCOFFsMS-DOSR-( tstructtcalcsizeR\RR+RRRt_default_architecturet_architecture_split( RtbitstlinkageR6tsizeRXtbRJtfileout((s /usr/lib64/python2.6/platform.pyt architecturesN                     cCsd}tdj otSd}yti\}}}}}Wntj o d}nX|p td|||||f o|o(ti}d}d}t}d}nd}|djoqt \}}}} |o|o d}n|pti i dd}n|pti i d|}q3n|out |\}}}|djo d}q|d jo8|djo+d}d |d jo d }qd}qn|d jo2|p!|djo d}qd}nd}qz|d djoBt \}} } } d}ti| d}|p | }qvqztidjo%t\}\}} }}d}qzn|djo| p |djo|}d}nyddk}Wntj oq X|idd\}}|djo d}q d}n|ptdd}n|djo d}n|djo d}n|djo d}n|djo d}n|djo d}n|djo d}n|d jo|djod}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_ARCHITECTUREtPROCESSOR_IDENTIFIERsMicrosoft WindowsR t Microsofts6.0iRRR0t16bitiRtJavas, tmacRtOpenVMSt0iNsSYI$_CPUitAlphatVAXs-pR(swin32swin16(t _uname_cacheRFRRRRRRRRRRRRR&RRRtvms_libRtgetsyiR)(t no_os_unamet processorRntnodeRRRtuse_syscmd_verRRRRRtstagetnonrelRKtcsidt cpu_number((s /usr/lib64/python2.6/platform.pyRhs   '                               cCs tdS(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.6/platform.pyRnscCs tdS(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.6/platform.pyROscCs tdS(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.6/platform.pyRscCs tdS(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.6/platform.pyR scCs tdS(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.6/platform.pyRscCs tdS(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.6/platform.pyRNs sB([\w.+]+)\s*\(#?([^,]+),\s*([\w ]+),\s*([\w :]+)\)\s*\[([^\]]+)\]?s ([\d\.]+)s;IronPython\s*([\d\.]+)(?: \(([\d\.]+)\))? on (.NET [\d\.]+)c CsH|djo ti}nti|d}|dj o|S|d djomd}ti|}|djotdt|n|i \}}}d}d}d} d} nti d djopd}t i|}|djotdt|n|i \}d}d}ti }d} d} nt i|}|djotd t|n|i \}} } } }t td oti\}}}nd }d}d}| d | } ti|d } t| djo#| idti| 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. i t IronPythons*failed to parse IronPython sys.version: %sRiRtJythons&failed to parse Jython sys.version: %ss'failed to parse CPython sys.version: %st subversiontCPythonR RiRGN(RFRRt_sys_version_cacheRt_ironpython_sys_version_parserRERjtreprR Rt_jython_sys_version_parsert_sys_version_parserRRWR&R'R RR( t sys_versiontresultRRERt alt_versiontcompilertbranchtrevisionRt builddatet buildtimeRJ((s /usr/lib64/python2.6/platform.pyt _sys_version=sb           c CshtixWddfddfd dffD]4\}}t|}||jo||fGHq,q,WdS(NsC2.4.3 (#1, Jun 21 2006, 13:54:21) [GCC 3.3.4 (pre 3.3.5 20040809)]RXs2.4.3Rt1sJun 21 2006 13:54:21sGCC 3.3.4 (pre 3.3.5 20040809)s)IronPython 1.0.60816 on .NET 2.0.50727.42RUs 1.0.60816s.NET 2.0.50727.42s4IronPython 1.0 (1.0.61005.1977) on .NET 2.0.50727.42s1.0.0(sCPythons2.4.3RRRgsJun 21 2006 13:54:21sGCC 3.3.4 (pre 3.3.5 20040809)(s IronPythons 1.0.60816RRRRs.NET 2.0.50727.42(s IronPythons1.0.0RRRRs.NET 2.0.50727.42(RYtclearRf(RWRXRY((s /usr/lib64/python2.6/platform.pyt_test_sys_versions    cCs tdS(s 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). i(Rf(((s /usr/lib64/python2.6/platform.pytpython_implementations cCs tdS(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(Rf(((s /usr/lib64/python2.6/platform.pytpython_versionscCsttitddS(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(RGR&R'Rf(((s /usr/lib64/python2.6/platform.pytpython_version_tuples cCs tdS(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(Rf(((s /usr/lib64/python2.6/platform.pyt python_branchs cCs tdS(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(Rf(((s /usr/lib64/python2.6/platform.pytpython_revisions cCstdd!S(sh Returns a tuple (buildno, builddate) stating the Python build number and date as strings. ii(Rf(((s /usr/lib64/python2.6/platform.pyt python_buildscCs tdS(sS Returns a string identifying the compiler used for compiling Python. i(Rf(((s /usr/lib64/python2.6/platform.pytpython_compilersic Csuti||fd}|dj o|St\}}}}}}||jo d}n|ot|||\}}}n|djoKt|\} } } } |ot||} qat|||| } n|d jotd\}}}|o-| o%t||||d|||} qatt i \}}t||||d||} n|djoet \}}}\}}}|p| ot|||} qat|||d|||} n|djo0|ot||} qat|||} nK|ot||} n1t t i \}}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 tLinuxtwithRDtonRN(Rq( t_platform_cacheRRFRR RRRhRRRRR?(taliasedtterseR_RnRORRRRNtreltversRRRR-t distversiontdistidtlibcnamet libcversionR[tvRRRRR:R;((s /usr/lib64/python2.6/platform.pyRsP        t__main__Rvs--terset nonaliaseds --nonaliased( sSuSER9R:R;R<R=R>R?s slackwareR@RARBRC((swin32swin16sdossos2(RRR(RRR(RRR(Rs WindowsPE(RsWindows(RsMSDOS(QRyt __copyright__t __version__RR&RtretcompileR RRR8R]RDRHt_supported_distsRKRZRgRhRiRFR~RRRRRRRRRRRRR RRRRRRR R!R"RR'R)R+R8R'R9R?RJRRnRORRRRNR]R\RZRYRfRiRjRkRlRmRnRoRpRtRRwtargvRvRutexit(((s /usr/lib64/python2.6/platform.pyt se0  3 2     5  6!   2   (  # 6 $     W     X    R