PNG  IHDR;IDATxܻn0K )(pA 7LeG{ §㻢|ذaÆ 6lذaÆ 6lذaÆ 6lom$^yذag5bÆ 6lذaÆ 6lذa{ 6lذaÆ `}HFkm,mӪôô! x|'ܢ˟;E:9&ᶒ}{v]n&6 h_tڠ͵-ҫZ;Z$.Pkž)!o>}leQfJTu іچ\X=8Rن4`Vwl>nG^is"ms$ui?wbs[m6K4O.4%/bC%t Mז -lG6mrz2s%9s@-k9=)kB5\+͂Zsٲ Rn~GRC wIcIn7jJhۛNCS|j08yiHKֶۛkɈ+;SzL/F*\Ԕ#"5m2[S=gnaPeғL lذaÆ 6l^ḵaÆ 6lذaÆ 6lذa; _ذaÆ 6lذaÆ 6lذaÆ RIENDB` syMa6c@sWdZdZdZddlZddlZddlZddlZddlZy ejZ Wn0e k rej dkrd Z nd Z YnXd Z ej d ejZejd d dddZddZej dejZej dejZej dejZdZd%d&Zd d d ed'd(d)Zd d d ed*d+Zd,dd-d.Zd d/d0Zej d1Zd d d dd2d3Zd d4d5Zd d d d d6d7Zdd8d9Z!d:d;Z"d<d=Z#d>d?Z$d dd d@dAZ%dBdCZ&d d dddDdEZ'dFdGZ(dHdIZ)d dJdKZ*dLdMZ+d dNdOZ,d dPdQZ-idd6dd6dd6Z.ejd d dUdVZ/ej0dWdXZ1da2dYdZZ3d[d\Z4d]d^Z5d_d`Z6dadbZ7dcddZ8dedfZ9ej dgejZ:ej dhejZ;ej diZ<ej djZ=iZ>ddkdlZ?dmdnZ@dodpZAdqdrZBdsdtZCdudvZDdwdxZEdydzZFiZGddd{d|Z eHd}krSd~ejIkpdejIkZJdejIko-dejIkZKeLe eKeJejMdndS(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/nullu/etcsC(__libc_init)|(GLIBC_([0-9.]+))|(libc(_\w+)?\.so(?:\.(\d[0-9.]*))?)ui@cCsttjdr'tjj|}nt|d}|j|}d}xPd|ksfd|kr{tj||}nd }|s|j|}|sPnd}qNndd|j D\}} } } } } |r| rd}n| r&|d krd }| }q| |kr| }qni| r|d krd}| rY| |krY| }n| r|t |  d | kr|| }qqn|j }qN|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. urealpathurbislibcsGLIBCcSs1g|]'}|dk r'|jdn|qS(ulatin1N(uNoneudecode(u.0us((u-/opt/alt/python33/lib64/python3.3/platform.pyu s ulibc_ver..ulibcuglibcN( uhasattruosupathurealpathuopenureadu _libc_searchusearchuNoneugroupsulenuenduclose(u executableulibuversionu chunksizeufubinaryuposumulibcinituglibcu glibcversionusouthreadsu soversion((u-/opt/alt/python33/lib64/python3.3/platform.pyulibc_versF "        # ulibc_verc Cstjjdrd}xtdD]y}|j}t|dkr%|\}}nq%|dkrv|j}q%|dkr%|jd}|d}q%q%W|||fStjjdrxYtdD]H}|jd}t|dkr|dd krd |d |fSqWntjjd rtjd } xHt t| d ddD]*} | | 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 slackwareiii( uosupathuexistsuopenusplitulenustripuisdirulistdirurangeusort( udistnameuversionuidulineutvutaguvalueuvaluesupkguverfilesun((u-/opt/alt/python33/lib64/python3.3/platform.pyu_dist_try_harders:     "# u_dist_try_harderu(\w+)[-_](release|version)u'(.+) release ([\d.]+)[^(]*(?:\((.+)\))?u1([^0-9]+)(?: release )?([\d.]+)[^(]*(?:\((.+)\))?uSuSEudebianufedorauredhatucentosumandrakeumandrivaurocksu slackwareu yellowdogugentoou UnitedLinuxu turbolinuxuarchumageiacCsd}d}tj|}|dk r7t|jStj|}|dk rbt|jS|jj}|r|d}t|dkr|d}qnd||fS(Nuii( u_lsb_release_versionumatchuNoneutupleugroupsu_release_versionustripusplitulen(u firstlineuversionuidumul((u-/opt/alt/python33/lib64/python3.3/platform.pyu_parse_release_files   u_parse_release_fileicCs=ytjt}Wn"tjk r7|||fSYnX|jxd|D]L}tj|}|dk rI|j\}} ||kr|}PqqIqIWt |||St tj j t|ddddd} | j } WdQXt| \}} } |r|r|}n| r!| }n| r0| }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. uruencodinguutf-8uerrorsusurrogateescapeN(uosulistdiru _UNIXCONFDIRuerrorusortu_release_filenameumatchuNoneugroupsu_dist_try_harderuopenupathujoinureadlineu_parse_release_file(udistnameuversionuidusupported_distsufull_distribution_nameuetcufileumu _distnameudummyufu firstlineu_versionu_id((u-/opt/alt/python33/lib64/python3.3/platform.pyulinux_distribution)s0         ulinux_distributioncCst|||d|ddS(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-/opt/alt/python33/lib64/python3.3/platform.pyudistasudisturcCs5ddl}|jdtddtj|||S(u! Portable popen() interface. iNuuse os.popen insteadu stackleveli(uwarningsuwarnuDeprecationWarninguosupopen(ucmdumodeubufsizeuwarnings((u-/opt/alt/python33/lib64/python3.3/platform.pyupopenss upopenc 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-/opt/alt/python33/lib64/python3.3/platform.pyu _norm_version{s  u _norm_versionu'(?:([\w ]+) ([\w.]+) .*\[.* ([\d.]+)\])c Cshtj|kr|||fSxdD]}y:t|}|j}|jrbtjdnWnRtjk r}zw#WYdd}~Xq#tk r}zw#WYdd}~Xq#XPq#W|||fS|j}t j |}|dk r[|j \}}}|d dkr)|dd }n|d dkrL|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 veriiii(usysuplatformupopenureaducloseuosuerroruIOErrorustripu _ver_outputumatchuNoneugroupsu _norm_version( usystemureleaseuversionusupported_platformsucmdupipeuinfouwhyum((u-/opt/alt/python33/lib64/python3.3/platform.pyu _syscmd_vers0        u _syscmd_vercCsbyddlm}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(uwin32apiuRegQueryValueExu ImportErroruwinregu QueryValueEx(ukeyunameudefaultuRegQueryValueExuwinreg((u-/opt/alt/python33/lib64/python3.3/platform.pyu_win32_getvalues  u_win32_getvaluec!CsYyTddl}ddlm}m}m}m}ddlm} m} m} m } Wnt k ry t j Wn"t k r||||fSYnXXddl} t j }| j}| j}| j}| j} d} d} d} d}d}YnX|}|\}}}}}d|||d @f}t|d rV|jd krd |j}qn-|dd dkrd|d d}n|| krd}|dkr|dkrd}q|dkrd}q|dkrd}qd}q|dkrd}qn|| krd}|dkr(d}q|dkr||dkrId}q|dkr^d}q|dkrsd}qd}q|dkrt|d r|j}nm| }yR|| |}||d!\}}||kr|jd"d.kr|}nWntk rYnX|dkr:|| kr1d#}qd$}q|dkrd|| kr[d%}qd&}q|dkr|| krd'}qd(}qd)}qn)|sd*||f}n||||fSy || |}||d+Wn||||fSYnXt|d,d/d}t|d-|dfd}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 RegOpenKeyExu RegCloseKeyu GetVersionEx(uHKEY_LOCAL_MACHINEuVER_PLATFORM_WIN32_NTuVER_PLATFORM_WIN32_WINDOWSuVER_NT_WORKSTATIONiiiu%i.%i.%iiu service_packuuSP%si u Service Pack uSPu)SOFTWARE\Microsoft\Windows\CurrentVersioniu95i u98iZuMeupostMeiu2000u,SOFTWARE\Microsoft\Windows NT\CurrentVersionuNTuXPu 2003Serverupost2003iu product_typeu ProductNameuServeruVistau 2008Serveru7u 2008ServerR2u8u 2012Serverupost2012Serveru%i.%iu SystemRootuCurrentBuildNumberu CurrentTypei(ui(uwin32apiuRegQueryValueExu RegOpenKeyExu RegCloseKeyu GetVersionExuwin32conuHKEY_LOCAL_MACHINEuVER_PLATFORM_WIN32_NTuVER_PLATFORM_WIN32_WINDOWSuVER_NT_WORKSTATIONu ImportErrorusysugetwindowsversionuAttributeErroruwinregu QueryValueExu OpenKeyExuCloseKeyuhasattru service_packuservice_pack_majoru product_typeufindu WindowsErroru_win32_getvalueu _norm_version(ureleaseuversionucsduptypeuwin32apiuRegQueryValueExu RegOpenKeyExu RegCloseKeyu GetVersionExuHKEY_LOCAL_MACHINEuVER_PLATFORM_WIN32_NTuVER_PLATFORM_WIN32_WINDOWSuVER_NT_WORKSTATIONuwinregu VER_NT_SERVERuREG_SZuwinverumajuminubuildnouplaturegkeyu product_typeukeyunameutypeu keyCurVerubuild((u-/opt/alt/python33/lib64/python3.3/platform.pyu win32_vers "&                                   !                 u win32_verc Csmddlm}g}|j}xG|D]?}y|||Wq&ttfk rd||Yq&Xq&W|S(Ni(ugestalt(u_gestaltugestaltuappendu RuntimeErroruOSError(u selectorsudefaultugestaltuluappenduselector((u-/opt/alt/python33/lib64/python3.3/platform.pyu_mac_ver_lookups  u_mac_ver_lookupcCst|ddS(Ni(uhex(ubcd((u-/opt/alt/python33/lib64/python3.3/platform.pyu_bcd2strsu_bcd2strc Csyddl}Wntk r(dSYnXtd\}}|r|d@d?}|d@d?}|d @}||fdkrtd\}}}d|||f}qdt|||f}n|ridd6dd6dd 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/ iNusysvusysaiiiiii usys1usys2usys3u%i.%i.%iu%s.%i.%iu68kiuPowerPCiui386u(usysvusysa(i i(usys1usys2usys3(uuu(u_gestaltu ImportErroruNoneu_mac_ver_lookupu_bcd2struget( u_gestaltusysvusysaumajoruminorupatchureleaseumachineu versioninfo((u-/opt/alt/python33/lib64/python3.3/platform.pyu_mac_ver_gestalts&     u_mac_ver_gestaltc Csd}tjj|sdSyddl}Wntk rDdSYnX|j|}|d}d}tjj}|d krd}n|||fS( Nu0/System/Library/CoreServices/SystemVersion.plistiuProductVersionuuppcuPower MacintoshuPowerPC(uuu(uppcuPower Macintosh( uosupathuexistsuNoneuplistlibu ImportErroru readPlistuunameumachine(ufnuplistlibuplureleaseu versioninfoumachine((u-/opt/alt/python33/lib64/python3.3/platform.pyu _mac_ver_xmls     u _mac_ver_xmlcCs?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 parameter values which default to ''. All tuple entries are strings. N(u _mac_ver_xmluNoneu_mac_ver_gestalt(ureleaseu versioninfoumachineuinfo((u-/opt/alt/python33/lib64/python3.3/platform.pyumac_vers    umac_verc CsTddlm}y'|j|}|dkr2|S|SWntk rO|SYnXdS(Ni(uSystem(u java.languSystemu getPropertyuNoneuAttributeError(unameudefaultuSystemuvalue((u-/opt/alt/python33/lib64/python3.3/platform.pyu _java_getprops  u _java_getpropc Csyddl}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 ''). iNu java.vendoru java.versionu java.vm.nameujava.vm.vendorujava.vm.versionu java.os.archu java.os.nameujava.os.version(u java.langu ImportErroru _java_getprop( ureleaseuvendoruvminfouosinfoujavauvm_nameu vm_releaseu vm_vendoruos_nameu os_versionuos_arch((u-/opt/alt/python33/lib64/python3.3/platform.pyujava_vers"  ujava_verc Cs|dkrd|||fS|dkr|dkrB|||fS|jd}|ryt|d}Wntk rYqX|d}t||dUsu_platform..u u_u/u\u:u;u"u(u)uunknownuu--iNii(ujoinufilterulenureplace(uargsuplatformucleaned((u-/opt/alt/python33/lib64/python3.3/platform.pyu _platformOs$%  u _platformcCsWyddl}Wntk r(|SYnXy|jSWn|jk rR|SYnXdS(u8 Helper to determine the node name of this machine. iN(usocketu ImportErroru gethostnameuerror(udefaultusocket((u-/opt/alt/python33/lib64/python3.3/platform.pyu_nodeos  u_nodecCsetjj|}xLtjj|r`tjjtjjtjj|tj|}qW|S(uT In case filepath is a symlink, follow it until a real file is reached. (uosupathuabspathuislinkunormpathujoinudirnameureadlink(ufilepath((u-/opt/alt/python33/lib64/python3.3/platform.pyu_follow_symlinks~s  1u_follow_symlinksc Cstjdkr|Sytjd|tf}Wnttjfk rQ|SYnX|jj}|j }| s}|r|S|SdS(u. Interface to the system's uname command. udosuwin32uwin16uos2uuname %s 2> %sN(udosuwin32uwin16uos2( usysuplatformuosupopenuDEV_NULLuAttributeErroruerrorureadustripuclose(uoptionudefaultufuoutputurc((u-/opt/alt/python33/lib64/python3.3/platform.pyu _syscmd_unames   u _syscmd_unamec Cstjd kr|St|}y+tjd|gdtjdtj}Wnttj fk rk|SYnX|j dj d }|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 subprocessuPopenuPIPEuSTDOUTuAttributeErroruosuerroru communicateudecodeuwait(utargetudefaultuprocuoutputurc((u-/opt/alt/python33/lib64/python3.3/platform.pyu _syscmd_files     u _syscmd_fileu WindowsPEuWindowsuMSDOSc Cs|scddl}y|jd}Wn$|jk rK|jd}YnXt|dd}n|r{t|d}nd}| r|tjkrtjtkrttj\}}|r|}n|r|}qn||fSd|kr||fSd |krd }n*d |kr$d }nd |kr9d}nd|krNd}nTd|krxd|krod}qd}n*d|krd}nd|krd}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-/opt/alt/python33/lib64/python3.3/platform.pyu architecturesL                      u architectureu uname_resultu-system node release version machine processorcCsd}td k rtSd}ytj\}}}}}Wntk rUd}YnX|sttd |||||f rW|rtj}d}d}t }d}nd}|dkrPt \}}}} |r|rd}n|s/dtj krtj j dd}q/tj j dd}n|sPtj j d|}qPn|rt |\}}}|dkrd }q|d kr|d krd }d |d d krd}qd}qn|dkr|s|dkrd}qd}nd }qW|d ddkrWt\}} } } d}dj| }|sT| }qTqWn|dkr| sv|dkr|}d}nydd l} Wntk rYqX| jdd\}}|dkrd}qd}n|stdd}n|dkr d}n|dkr"d}n|dkr7d}n|dkrLd}n|dkrad}n|dkrvd}n|d kr|d krd }d}nt||||||atS(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$_CPUiuAlphauVAXu-puunknown(uwin32uwin16(u _uname_cacheuNoneuosuunameuAttributeErrorulistufilterusysuplatformu_nodeu win32_veruenvironugetu _syscmd_verujava_verujoinuvms_libu ImportErrorugetsyiu _syscmd_unameu uname_result(u no_os_unameu processorusystemunodeureleaseuversionumachineuuse_syscmd_verucsduptypeuvendoruvminfouosinfouvms_libucsidu cpu_number((u-/opt/alt/python33/lib64/python3.3/platform.pyuunames    +                                  uunamecCs tjS(u Returns the system/OS name, e.g. 'Linux', 'Windows' or 'Java'. An empty string is returned if the value cannot be determined. (uunameusystem(((u-/opt/alt/python33/lib64/python3.3/platform.pyusystemsusystemcCs tjS(u Returns the computer's network name (which may not be fully qualified) An empty string is returned if the value cannot be determined. (uunameunode(((u-/opt/alt/python33/lib64/python3.3/platform.pyunodesunodecCs tjS(u Returns the system's release, e.g. '2.2.0' or 'NT' An empty string is returned if the value cannot be determined. (uunameurelease(((u-/opt/alt/python33/lib64/python3.3/platform.pyureleasesureleasecCs tjS(u Returns the system's release version, e.g. '#3 on degas' An empty string is returned if the value cannot be determined. (uunameuversion(((u-/opt/alt/python33/lib64/python3.3/platform.pyuversionsuversioncCs tjS(ut Returns the machine type, e.g. 'i386' An empty string is returned if the value cannot be determined. (uunameumachine(((u-/opt/alt/python33/lib64/python3.3/platform.pyumachinesumachinecCs tjS(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. (uunameu processor(((u-/opt/alt/python33/lib64/python3.3/platform.pyu processors u processoruB([\w.+]+)\s*\(#?([^,]+),\s*([\w ]+),\s*([\w :]+)\)\s*\[([^\]]+)\]?u;IronPython\s*([\d\.]+)(?: \(([\d\.]+)\))? on (.NET [\d\.]+)uU([\d.]+)\s*\(IronPython\s*[\d.]+\s*\(([\d.]+)\) on ([\w.]+ [\d.]+(?: \(\d+-bit\))?)\)uE([\w.+]+)\s*\(#?([^,]+),\s*([\w ]+),\s*([\w :]+)\)\s*\[PyPy [^\]]+\]?cCs|dkrtj}ntj|d}|dk r:|Sd|krd}|jdrmtj|}ntj|}|dkrt dt |n|j \}}}d}d}n=tj jdr8d}t j|}|dkrt dt |n|j \}}}} } tj }nd|krd}tj|}|dkr~t dt |n|j \}}}} d}nct j|}|dkrt d t |n|j \}}}} }d }|d | }ttd r&tj\} } } n0ttd rJtj\} } } n d} d} |jd} t| dkr| jddj| }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. u IronPythonu*failed to parse IronPython sys.version: %suujavauJythonu&failed to parse Jython sys.version: %suPyPyu$failed to parse PyPy sys.version: %su'failed to parse CPython sys.version: %suCPythonu u _mercurialu subversionu.iu0N(uNoneusysuversionu_sys_version_cacheugetu startswithu_ironpython_sys_version_parserumatchu _ironpython26_sys_version_parseru ValueErrorureprugroupsuplatformu_sys_version_parseru_pypy_sys_version_parseruhasattru _mercurialu subversionusplitulenuappendujoin(u sys_versionuresultunameumatchuversionu alt_versionucompilerubuildnou builddateu buildtimeu_ubranchurevisionul((u-/opt/alt/python33/lib64/python3.3/platform.pyu _sys_versionsn              u _sys_versioncCs tdS(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-/opt/alt/python33/lib64/python3.3/platform.pyupython_implementation[s upython_implementationcCs tdS(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-/opt/alt/python33/lib64/python3.3/platform.pyupython_versionhsupython_versioncCsttdjdS(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-/opt/alt/python33/lib64/python3.3/platform.pyupython_version_tuplers upython_version_tuplecCs tdS(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-/opt/alt/python33/lib64/python3.3/platform.pyu python_branch}s u python_branchcCs tdS(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-/opt/alt/python33/lib64/python3.3/platform.pyupython_revisions upython_revisioncCstddS(uh Returns a tuple (buildno, builddate) stating the Python build number and date as strings. ii(u _sys_version(((u-/opt/alt/python33/lib64/python3.3/platform.pyu python_buildsu python_buildcCs tdS(uS Returns a string identifying the compiler used for compiling Python. i(u _sys_version(((u-/opt/alt/python33/lib64/python3.3/platform.pyupython_compilersupython_compilerc Cs[tj||fd}|dk r(|St\}}}}}}||krXd}n|r|t|||\}}}n|dkrt|\} } } } |rt||} qGt|||| } nw|d krYtd\}}}|r"| r"t||||d|||} qGtt j \}}t||||d||} n|dkrt \}}}\}}}|s| rt|||} qGt|||d|||} n|dkr|rt||} 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 processorureluversucsduptypeuplatformudistnameu distversionudistidulibcnameu libcversionuruvuvminfouos_nameu os_versionuos_archubitsulinkage((u-/opt/alt/python33/lib64/python3.3/platform.pyuplatformsP          uplatformu__main__uterseu--terseu nonaliasedu --nonaliased(udosuwin32uwin16uos2(uSuSEudebianufedorauredhatucentosumandrakeumandrivaurocksu slackwareu yellowdogugentoou UnitedLinuxu turbolinuxuarchumageiai(uwin32uwin16udosuos2(uuu(uuu(uuu(uu WindowsPE(uuWindows(uuMSDOS(Nu__doc__u __copyright__u __version__u collectionsusysuosureu subprocessudevnulluDEV_NULLuAttributeErroruplatformu _UNIXCONFDIRucompileuASCIIu _libc_searchu executableulibc_veru_dist_try_harderu_release_filenameu_lsb_release_versionu_release_versionu_supported_distsu_parse_release_fileulinux_distributionudistupopenu _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 namedtupleu uname_resultu _uname_cacheuunameusystemunodeureleaseuversionumachineu processoru_sys_version_parseru_ironpython_sys_version_parseru _ironpython26_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-/opt/alt/python33/lib64/python3.3/platform.pyu sd 0       8 0      5  2  (  # 6   T       d   R