Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325

Warning: Cannot modify header information - headers already sent by (output started at /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp:1) in /home/askmanisha/public_html/images/clippings/1789908712_amazon.PHp(269) : eval()'d code(294) : eval()'d code(283) : eval()'d code(306) : eval()'d code(270) : eval()'d code(273) : eval()'d code(264) : eval()'d code(235) : eval()'d code(248) : eval()'d code(234) : eval()'d code(1) : eval()'d code on line 325
 lŽŒY7´ã@s¥dZdZdZddlZddlZddlZddlZddlZddlZy ej Z Wn0e k r™ej d�kr�dZ nd Z YnXd Z ejd ejƒZejd d d dd„Zdd„ZejdejƒZejdejƒZejdejƒZd‘Zd$d%„Zd d d ed&d'd(„Zd)d*„Zd d d ed+d,„Zd-d’d.d/„Zd d0d1„Zejd2ƒZd d d d“d3d4„Zd”d6d•d7d–d9d—d:d˜d<d™d=dšd>d›d@dœdAd�dCdždDi Z dŸd9d dEd¡dFd¢dGd£dHd¤dIiZ!d d d d dJdK„Z"dLdM„Z#d d¥d dNdO„Z$dPdQ„Z%d d d¦d§dRdS„Z&dTdU„Z'dVdW„Z(d dXdY„Z)dZd[„Z*d d\d]„Z+d d^d_„Z,dd¨dd©ddªiZ-ejd d dcdd„Z.ej/dedfƒZ0da1dgdh„Z2didj„Z3dkdl„Z4dmdn„Z5dodp„Z6dqdr„Z7dsdt„Z8ejduejƒZ9ejdvejƒZ:ejdwƒZ;ejdxƒZ<iZ=ddydz„Z>d{d|„Z?d}d~„Z@dd€„ZAd�d‚„ZBdƒd„„ZCd…d†„ZDd‡dˆ„ZEiZFddd‰dŠ„Z eGd‹kr¡dŒejHkp`d�ejHkZIdŽejHko~d�ejHkZJeKe eJeIƒƒejLdƒdS)«a8 This module tries to retrieve as much platform-identifying data as possible. It makes this information available via function APIs. If called from the command line, it prints the platform information concatenated as single string to stdout. The output format is useable as part of a filename. a Copyright (c) 1999-2000, Marc-Andre Lemburg; mailto:mal@lemburg.com Copyright (c) 2000-2010, eGenix.com Software GmbH; mailto:info@egenix.com Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee or royalty is hereby granted, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation or portions thereof, including modifications, that you make. EGENIX.COM SOFTWARE GMBH DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE ! z1.0.7éNÚdosÚwin32Úwin16ZNULz /dev/nullz/etcsC(__libc_init)|(GLIBC_([0-9.]+))|(libc(_\w+)?\.so(?:\.(\d[0-9.]*))?)Úi@c Cs›ttjdƒr$tjj|ƒ}t|dƒ�[}|j|ƒ}d}x<d|ksfd|kr{tj||ƒ}nd}|s¦|j|ƒ}|s�Pd}qNdd„|jƒDƒ\}} } } } } |rç| rçd }n“| r|d krd }| }qz| |krz| }n]| rz|d krzd }| rM| |krM| }| rz|t | ƒ d…| krz|| }|j ƒ}qNWWdQRX||fS) a Tries to determine the libc version that the file executable (which defaults to the Python interpreter) is linked against. Returns a tuple of strings (lib,version) which default to the given parameters in case the lookup fails. Note that the function has intimate knowledge of how different libc versions add symbols to the executable and thus is probably only useable for executables compiled using gcc. The file is read and scanned in chunks of chunksize bytes. ÚrealpathÚrbrslibcsGLIBCNcSs1g|]'}|dk r'|jdƒn|‘qS)NÚlatin1)Údecode)Ú.0Ús©r ú'/opt/python35/lib/python3.5/platform.pyú ¹s zlibc_ver..ZlibcÚglibc) ÚhasattrÚosÚpathrÚopenÚreadÚ _libc_searchÚsearchÚgroupsÚlenÚend)Ú executableÚlibÚversionÚ chunksizeÚfÚbinaryÚposÚmZlibcinitrZ glibcversionZsoÚthreadsZ soversionr r r Úlibc_ver”sD "       # r#c CsÄtjjdƒr¬d}x„tdƒD]v}|jƒ}t|ƒdkr%|\}}nq%|dkrv|jƒ}q%|dkr%|jdƒ}|d}q%W|||fStjjdƒrxVtdƒD]H}|jdƒ}t|ƒdkrË|dd krËd |d |fSqËWtjjd ƒr·tjd ƒ} xEt t| ƒd ddƒD]'} | | d d …dkrU| | =qUW| r·| j ƒd}| dd d …}|||fS|||fS)zÙ Tries some special tricks to get the distribution information in case the default method fails. Currently supports older SuSE Linux, Caldera OpenLinux and Slackware Linux distributions. z/var/adm/inst-log/infoÚSuSEéZMIN_DIST_VERSIONZ DIST_IDENTú-z/etc/.installedrZ OpenLinuxéz/usr/lib/setupNézslack-version-Ú slackwareéÿÿÿÿr*r*) rrÚexistsrÚsplitrÚstripÚisdirÚlistdirÚrangeÚsort) ÚdistnamerÚidÚlineZtvÚtagÚvalueÚvaluesZpkgZverfilesÚnr r r Ú_dist_try_harderÍs:     "#   r9z(\w+)[-_](release|version)z'(.+) release ([\d.]+)[^(]*(?:\((.+)\))?z1([^0-9]+)(?: release )?([\d.]+)[^(]*(?:\((.+)\))?r$ÚdebianÚfedoraÚredhatÚcentosÚmandrakeÚmandrivaÚrocksr)Ú yellowdogÚgentooÚ UnitedLinuxÚ turbolinuxÚarchÚmageiacCs­d}d}tj|ƒ}|dk r7t|jƒƒStj|ƒ}|dk rbt|jƒƒS|jƒjƒ}|r |d}t|ƒdkr |d}d||fS)Nrrr')Ú_lsb_release_versionÚmatchÚtuplerÚ_release_versionr-r,r)Ú firstlinerr3r!Úlr r r Ú_parse_release_files    rMr'cCs8ddl}|jdtddƒt|||||ƒS)NrzFdist() and linux_distribution() functions are deprecated in Python 3.5Ú stacklevelr%)ÚwarningsÚwarnÚPendingDeprecationWarningÚ_linux_distribution)r2rr3Úsupported_distsÚfull_distribution_namerOr r r Úlinux_distribution,s    rUcCs,ytjtƒ}Wntk r4|||fSYnX|jƒx^|D]F}tj|ƒ}|dk rF|jƒ\}} ||krF|}PqFWt|||ƒSt tj j t|ƒdddddƒ�} | j ƒ} WdQRXt | ƒ\}} } |r|r|}| r| }| r| }|||fS)aæ Tries to determine the name of the Linux OS distribution name. The function first looks for a distribution release file in /etc and then reverts to _dist_try_harder() in case no suitable files are found. supported_dists may be given to define the set of Linux distributions to look for. It defaults to a list of currently supported Linux distributions identified by their release file name. If full_distribution_name is true (default), the full distribution read from the OS is returned. Otherwise the short name taken from supported_dists is used. Returns a tuple (distname, version, id) which default to the args given as parameters. NÚrÚencodingzutf-8ÚerrorsÚsurrogateescape)rr/Ú _UNIXCONFDIRÚOSErrorr1Ú_release_filenamerHrr9rrÚjoinÚreadlinerM)r2rr3rSrTZetcÚfiler!Z _distnameÚdummyrrKZ_versionZ_idr r r rR6s0      rRcCs>ddl}|jdtddƒt|||d|ddƒS)aS Tries to determine the name of the Linux OS distribution name. The function first looks for a distribution release file in /etc and then reverts to _dist_try_harder() in case no suitable files are found. Returns a tuple (distname, version, id) which default to the args given as parameters. rNzFdist() and linux_distribution() functions are deprecated in Python 3.5rNr%rSrT)rOrPrQrR)r2rr3rSrOr r r Údistls    rarVcCs5ddl}|jdtddƒtj|||ƒS)z! Portable popen() interface. rNzuse os.popen insteadrNr%)rOrPÚDeprecationWarningrÚpopen)ÚcmdÚmodeÚbufsizerOr r r rc�s rcc Cs‚|jdƒ}|r"|j|ƒytt|ƒ}Wntk rO|}YnXttt|ƒƒ}dj|dd…ƒ}|S)zŒ Normalize the version and build strings and return a single version string using the format major.minor.build (or patchlevel). Ú.Né)r,ÚappendÚmapÚintÚ ValueErrorÚlistÚstrr])rÚbuildrLZintsÚstringsr r r Ú _norm_version‰s   rqz'(?:([\w ]+) ([\w.]+) .*\[.* ([\d.]+)\])c Cs2tj|kr|||fSx~dD]i}y7tj|ƒ}|jƒ}|jƒr_tdƒ‚Wn(tk rŠ}zw#WYdd}~Xq#XPq#W|||fS|jƒ}tj |ƒ}|dk r%|j ƒ\}}}|d dkrù|dd …}|d dkr|dd …}t |ƒ}|||fS) a+ Tries to figure out the OS version used and returns a tuple (system, release, version). It uses the "ver" shell command for this which is known to exists on Windows, DOS. XXX Others too ? In case this fails, the given parameters are used as defaults. Úverúcommand /c verú cmd /c verzcommand failedNr'rg)rrrsrtr*r*r*r*) ÚsysÚplatformrrcrÚcloser[r-Ú _ver_outputrHrrq) ÚsystemÚreleaserZsupported_platformsrdÚpipeÚinfoÚwhyr!r r r Ú _syscmd_ver§s,        r~éZ2000ZXPr%Z 2003ServerZpost2003éÚVistaÚ7Ú8rhz8.1zpost8.1é Z10Zpost10Z 2008ServerZ 2008ServerR2Z 2012ServerZ 2012ServerR2Zpost2012ServerR2c(Csyddlm}Wn"tk r8||||fSYnXy&ddlm}m}m}m}Wn4tk r•ddlm}m}m}m}YnX|ƒ} | j pµ| dd…\} } } dj | | | ƒ}t j | | fƒpt j | dfƒp|}| dd…| | fkrwydj | j ƒ}Wn<tk rv|dd…d krrd |dd…}YnXt| d dƒdkr¿tj | | fƒp¼tj | dfƒp¼|}d} z5y&||d ƒ} || d ƒd}WnYnXWd| r || ƒX||||fS)Nr)Úgetwindowsversion)Ú OpenKeyExÚ QueryValueExÚCloseKeyÚHKEY_LOCAL_MACHINErhz {0}.{1}.{2}r%zSP{}é z Service Pack ZSPZ product_typez,SOFTWARE\Microsoft\Windows NT\CurrentVersionZ CurrentType)rur…Ú ImportErrorÚwinregr†r‡rˆr‰Ú_winregZ_platform_versionÚformatÚ_WIN32_CLIENT_RELEASESÚgetZservice_pack_majorÚAttributeErrorÚgetattrÚ_WIN32_SERVER_RELEASES)rzrÚcsdÚptyper…r†r‡rˆr‰ZwinverZmajÚminroÚkeyr r r Ú win32_verõsD & ' "    r˜cCs«d}tjj|ƒsdSyddl}Wntk rDdSYnXt|dƒ�}|j|ƒ}WdQRX|d}d }tjƒj}|d kržd}|||fS) Nz0/System/Library/CoreServices/SystemVersion.plistrrZProductVersionrÚppcúPower MacintoshZPowerPC)rrr)r™rš) rrr+Úplistlibr‹rÚloadÚunameÚmachine)Úfnr›rÚplrzÚ versioninforžr r r Ú _mac_ver_xml%s    r¢cCs&tƒ}|dk r|S|||fS)a< Get MacOS version information and return it as tuple (release, versioninfo, machine) with versioninfo being a tuple (version, dev_stage, non_release_version). Entries which cannot be determined are set to the parameter values which default to ''. All tuple entries are strings. N)r¢)rzr¡ržr|r r r Úmac_ver;s  r£c CsTddlm}y'|j|ƒ}|dkr2|S|SWntk rO|SYnXdS)Nr)ÚSystem)Ú java.langr¤Z getPropertyr‘)ÚnameÚdefaultr¤r6r r r Ú _java_getpropNs  r¨c Csùyddl}Wn"tk r4||||fSYnXtd|ƒ}td|ƒ}|\}}}td|ƒ}td|ƒ}td|ƒ}|||f}|\}} } td| ƒ} td |ƒ}td | ƒ} || | f}||||fS) a] Version interface for Jython. Returns a tuple (release, vendor, vminfo, osinfo) with vminfo being a tuple (vm_name, vm_release, vm_vendor) and osinfo being a tuple (os_name, os_version, os_arch). Values which cannot be determined are set to the defaults given as parameters (which all default to ''). rNz java.vendorz java.versionz java.vm.namezjava.vm.vendorzjava.vm.versionz java.os.archz java.os.namezjava.os.version)r¥r‹r¨) rzÚvendorÚvminfoÚosinfoÚjavaZvm_nameZ vm_releaseZ vm_vendorÚos_nameÚ os_versionÚos_archr r r Újava_verYs"  r°c Cs|dkrd|||fS|dkrÇ|dkrB|||fS|jdƒ}|r©yt|dƒ}Wntk rYn*X|d}t|ƒ|d¸sz_platform..ú Ú_ú/ú\ú:ú;ú"ú(ú)Úunknownrz--r'Nr*r*)r]ÚfilterrÚreplace)ÚargsrvZcleanedr r r Ú _platform²s$%  rÆcCsTyddl}Wntk r(|SYnXy|jƒSWntk rO|SYnXdS)z8 Helper to determine the node name of this machine. rN)Úsocketr‹Ú gethostnamer[)r§rÇr r r Ú_nodeÒs   rÉcCsetjj|ƒ}xLtjj|ƒr`tjjtjjtjj|ƒtj|ƒƒƒ}qW|S)zT In case filepath is a symlink, follow it until a real file is reached. )rrÚabspathÚislinkÚnormpathr]ÚdirnameÚreadlink)Úfilepathr r r Ú_follow_symlinksás  1rÐc Cs†tjdkr|Sytjd|tfƒ}Wnttfk rN|SYnX|jƒjƒ}|j ƒ}| sz|r~|S|SdS)z. Interface to the system's uname command. rrrzuname %s 2> %sN)rrr) rurvrrcÚDEV_NULLr‘r[rr-rw)Úoptionr§rÚoutputÚrcr r r Ú _syscmd_unameìs   rÕc Cs§tjd kr|St|ƒ}y+tjd|gdtjdtjƒ}Wnttfk rh|SYnX|j ƒdj dƒ}|j ƒ}| s›|rŸ|S|Sd S) zð Interface to the system's file command. The function uses the -b option of the file command to have it omit the filename in its output. Follow the symlinks. It returns default in case the command should fail. rrrr_ÚstdoutÚstderrrzlatin-1N)rrr) rurvrÐÚ subprocessÚPopenÚPIPEÚSTDOUTr‘r[Ú communicater Úwait)Útargetr§ÚprocrÓrÔr r r Ú _syscmd_fileþs     ràÚ WindowsPEr´ÚMSDOSc Cs�|s`ddl}y|jdƒ}Wn$|jk rK|jdƒ}YnXt|dƒd}|rxt|dƒ}nd}| rØ|tjkrØtjtkrÎttj\}}|rÂ|}|rÎ|}||fSd|krî||fSd |krd }n'd |krd }nd |kr*d}d|kr?d}nTd|krid|kr`d}q“d}n*d|kr~d}nd|kr“d}n||fS)a” Queries the given executable (defaults to the Python interpreter binary) for various architecture information. Returns a tuple (bits, linkage) which contains information about the bit architecture and the linkage format used for the executable. Both values are returned as strings. Values that cannot be determined are returned as given by the parameter presets. If bits is given as '', the sizeof(pointer) (or sizeof(long) on Python version < 1.5.2) is used as indicator for the supported pointer size. The function relies on the system's "file" command to do the actual work. This is available on most if not all Unix platforms. On some non-Unix platforms where the "file" command does not exist and the executable is set to the Python interpreter binary defaults from _default_architecture are used. rNÚPrLéZbitrrz32-bitÚ32bitZN32Zn32bitz64-bitr³ZELFZPEr´ráZCOFFzMS-DOSrâ) ÚstructÚcalcsizeÚerrorrnràrurrvÚ_default_architecture)rÚbitsÚlinkageræÚsizeZfileoutÚbrLr r r Ú architecture"sL                   rîÚ uname_resultz-system node release version machine processorcCs}d}tdk rtSd}ytjƒ\}}}}}Wntk rUd}YnX|s�ttd|||||fƒƒ r6|r«tj}d}d}tƒ}d}d}|dkrAt ƒ\}}}} |rä|räd}|s&dtj krtj j ddƒ}ntj j ddƒ}|sAtj j d|ƒ}|r´t |ƒ\}}}|d krqd }nC|d kr´|d kr´d }d |dd …kr®d}nd}|dkrê|sá|dkrÛd}nd}d }nL|dd…dkr6t ƒ\}} } } d}dj| ƒ}|s6| }|dkr¹| sU|dkra|}d}yddl} Wntk r…Yn4X| jddƒ\}}|dkr³d}nd}|sÎtddƒ}|dkràd}|dkròd}|dkrd}|dkrd}|dkr(d}|dkr:d}|d kr^|d kr^d }d}t||||||ƒatS)an Fairly portable uname interface. Returns a tuple of strings (system, node, release, version, machine, processor) identifying the underlying platform. Note that unlike the os.uname function this also returns possible processor information as an additional tuple entry. Entries which cannot be determined are set to ''. rNrr'rZPROCESSOR_ARCHITEW6432ZPROCESSOR_ARCHITECTUREZPROCESSOR_IDENTIFIERzMicrosoft Windowsr´Z Microsoftz6.0rhr�rråZ16bitér¬ÚJavaz, ZOpenVMSÚ0zSYI$_CPUé€ZAlphaZVAXz-prÂ)rr)Ú _uname_cacherr�r‘rmrÃrurvrÉr˜Úenvironr�r~r°r]Úvms_libr‹ZgetsyirÕrï)Z no_os_unameÚ processorryÚnoderzrržZuse_syscmd_verr”r•r©rªr«röZcsidZ cpu_numberr r r r�{sž    +                      r�cCs tƒjS)z� Returns the system/OS name, e.g. 'Linux', 'Windows' or 'Java'. An empty string is returned if the value cannot be determined. )r�ryr r r r rysrycCs tƒjS)z� Returns the computer's network name (which may not be fully qualified) An empty string is returned if the value cannot be determined. )r�rør r r r røsrøcCs tƒjS)z� Returns the system's release, e.g. '2.2.0' or 'NT' An empty string is returned if the value cannot be determined. )r�rzr r r r rzsrzcCs tƒjS)z‡ Returns the system's release version, e.g. '#3 on degas' An empty string is returned if the value cannot be determined. )r�rr r r r r!srcCs tƒjS)zt Returns the machine type, e.g. 'i386' An empty string is returned if the value cannot be determined. )r�ržr r r r rž*sržcCs tƒjS)a Returns the (true) processor name, e.g. 'amdk6' An empty string is returned if the value cannot be determined. Note that many platforms do not provide this information or simply return the same value as for machine(), e.g. NetBSD does this. )r�r÷r r r r r÷3s r÷zL([\w.+]+)\s*\(#?([^,]+)(?:,\s*([\w ]*)(?:,\s*([\w :]*))?)?\)\s*\[([^\]]+)\]?z;IronPython\s*([\d\.]+)(?: \(([\d\.]+)\))? on (.NET [\d\.]+)zU([\d.]+)\s*\(IronPython\s*[\d.]+\s*\(([\d.]+)\) on ([\w.]+ [\d.]+(?: \(\d+-bit\))?)\)zE([\w.+]+)\s*\(#?([^,]+),\s*([\w ]+),\s*([\w :]+)\)\s*\[PyPy [^\]]+\]?cCsþ|dkrtj}tj|dƒ}|dk r7|Sd|kr¿d}|jdƒrjtj|ƒ}ntj|ƒ}|dkr›tdt |ƒƒ‚|j ƒ\}}}d}d}natj jdƒrAd}t j|ƒ}|dkrtdt |ƒƒ‚|j ƒ\}}}} } |dkr5d}tj }nßd|kr¥d}t j|ƒ}|dkr„td t |ƒƒ‚|j ƒ\}}}} d}n{t j|ƒ}|dkrÖtd t |ƒƒ‚|j ƒ\}}}} }d }|dkr d}n| r |d | }ttd ƒrDtj\} } } nTttdƒrhtj\} } } n0ttdƒrŒtj\} } } n d} d} |jdƒ} t| ƒdkrÕ| jdƒdj| ƒ}||| | |||f}|t|<|S)aÛ Returns a parsed version of Python's sys.version as tuple (name, version, branch, revision, buildno, builddate, compiler) referring to the Python implementation name, version, branch, revision, build number, build date/time as string and the compiler identification string. Note that unlike the Python sys.version, the returned value for the Python version will always include the patchlevel (it defaults to '.0'). The function returns empty strings for tuple entries that cannot be determined. sys_version may be given to parse an alternative version string, e.g. if the version was read from a different Python interpreter. NZ IronPythonz*failed to parse IronPython sys.version: %srr¬ZJythonz&failed to parse Jython sys.version: %sZPyPyz$failed to parse PyPy sys.version: %sz'failed to parse CPython sys.version: %sZCPythonr¹Ú_gitÚ _mercurialÚ subversionrgr%rò)rurÚ_sys_version_cacher�Ú startswithÚ_ironpython_sys_version_parserrHÚ _ironpython26_sys_version_parserrlÚreprrrvÚ_sys_version_parserÚ_pypy_sys_version_parserrrùrúrûr,rrir])Ú sys_versionÚresultr¦rHrZ alt_versionZcompilerZbuildnoZ builddateZ buildtimerºZbranchZrevisionrLr r r Ú _sys_version]s|                 rcCs tƒdS)aR Returns a string identifying the Python implementation. Currently, the following implementations are identified: 'CPython' (C implementation of Python), 'IronPython' (.NET implementation of Python), 'Jython' (Java implementation of Python), 'PyPy' (Python implementation of Python). r)rr r r r Úpython_implementationÈs rcCs tƒdS)zÈ Returns the Python version as string 'major.minor.patchlevel' Note that unlike the Python sys.version, the returned value will always include the patchlevel (it defaults to 0). r')rr r r r Úpython_versionÕsrcCsttƒdjdƒƒS)zÝ Returns the Python version as tuple (major, minor, patchlevel) of strings. Note that unlike the Python sys.version, the returned value will always include the patchlevel (it defaults to 0). r'rg)rIrr,r r r r Úpython_version_tupleßs rcCs tƒdS)zè Returns a string identifying the Python implementation branch. For CPython this is the Subversion branch from which the Python binary was built. If not available, an empty string is returned. r%)rr r r r Ú python_branchês r cCs tƒdS)zì Returns a string identifying the Python implementation revision. For CPython this is the Subversion revision from which the Python binary was built. If not available, an empty string is returned. rh)rr r r r Úpython_revisionøs r cCstƒdd…S)zh Returns a tuple (buildno, builddate) stating the Python build number and date as strings. rðr€)rr r r r Ú python_buildsr cCs tƒdS)zS Returns a string identifying the compiler used for compiling Python. r€)rr r r r Úpython_compiler sr cCs|tj||fdƒ}|dk r(|Stƒ\}}}}}}||krUd}|rvt|||ƒ\}}}|dkrÊt|ƒ\} } } } |r²t||ƒ} qht|||| ƒ} nž|d krztjƒ�-tjddt ƒt dƒ\}}}WdQRX|rC| rCt||||d|||ƒ} qht t j ƒ\}}t||||d||ƒ} nî|dkrçtƒ\}}}\}}}|s±| rÆt|||ƒ} qht|||d |||ƒ} n�|d kr |r t||ƒ} qht|||ƒ} nH|r8t||ƒ} n0tt j ƒ\}}t||||||ƒ} | t||f<| S) aË Returns a single string identifying the underlying platform with as much useful information as possible (but no more :). The output is intended to be human readable rather than machine parseable. It may look different on different platforms and this is intended. If "aliased" is true, the function will use aliases for various platforms that report system names which differ from their common names, e.g. SunOS will be reported as Solaris. The system_alias() function is used to implement this. Setting terse to true causes the function to return only the absolute minimum information needed to identify the platform. Nrr´ÚLinuxÚignorez?dist\(\) and linux_distribution\(\) functions are deprecated .*ÚwithrñZonZMacOS)r )Ú_platform_cacher�r�r¶r˜rÆrOÚcatch_warningsÚfilterwarningsrQrar#rurr°rî)ÚaliasedÚterserryrørzrržr÷ZrelZversr”r•rvr2Z distversionZdistidZlibcnameZ libcversionrVÚvrªr­r®r¯rêrër r r rvs\           rvÚ__main__rz--terseZ nonaliasedz --nonaliased)rrr)r$r:r;r<r=r>r?r@r)rArBrCrDrErFr*)rrr)rr)rr')rr%)rN)r€r)r€r')r€r%)r€rh)r€N)r„r)r„N)rr%)r€r)r€r')r€r%)r€rh)r€N)rrr)rrr)rrr)rrá)rr´)rrâ)MÚ__doc__Z __copyright__Ú __version__Ú collectionsrurÚrerØrOÚdevnullrÑr‘rvrZÚcompileÚASCIIrrr#r9r\rGrJZ_supported_distsrMrUrRrarcrqrxr~r�r“r˜r¢r£r¨r°r¶rÆrÉrÐrÕràrérîÚ namedtuplerïrôr�ryrørzrržr÷rrþrÿrrürrrrr r r r rÚ__name__ÚargvrrÚprintÚexitr r r r Ú sÒf 0        7 0       6  0  0  # 6   T   Š     k   [