Your IP : 3.135.229.106
�
��f6�c@sWdZdZdZddlZddlZddlZddlZddlZy
ejZ Wn0e
k
r�ejd�kr�d Z nd
Z YnXdZej
dej�Zejd
d
ddd�Zdd�Zej
dej�Zej
dej�Zej
dej�Zd�Zd%d&�Zd
d
d
ed'd(d)�Zd
d
d
ed*d+�Zd,d�d-d.�Zd
d/d0�Zej
d1�Zd
d
d
d�d2d3�Zd
d4d5�Zd
d
d
d
d6d7�Zdd8d9�Z!d:d;�Z"d<d=�Z#d>d?�Z$d
d�d
d@dA�Z%dBdC�Z&d
d
d�d�dDdE�Z'dFdG�Z(dHdI�Z)d
dJdK�Z*dLdM�Z+d
dNdO�Z,d
dPdQ�Z-id�d6d�d6d�d6Z.ejd
d
dUdV�Z/ej0dWdX�Z1da2dYdZ�Z3d[d\�Z4d]d^�Z5d_d`�Z6dadb�Z7dcdd�Z8dedf�Z9ej
dgej�Z:ej
dhej�Z;ej
di�Z<ej
dj�Z=iZ>ddkdl�Z?dmdn�Z@dodp�ZAdqdr�ZBdsdt�ZCdudv�ZDdwdx�ZEdydz�ZFiZGddd{d|�ZeHd}krSd~ejIkpdejIkZJd�ejIko-d�ejIkZKeLeeKeJ��ejMd�ndS(�u8 This module tries to retrieve as much platform-identifying data as
possible. It makes this information available via function APIs.
If called from the command line, it prints the platform
information concatenated as single string to stdout. The output
format is useable as part of a filename.
u
Copyright (c) 1999-2000, Marc-Andre Lemburg; mailto:mal@lemburg.com
Copyright (c) 2000-2010, eGenix.com Software GmbH; mailto:info@egenix.com
Permission to use, copy, modify, and distribute this software and its
documentation for any purpose and without fee or royalty is hereby granted,
provided that the above copyright notice appear in all copies and that
both that copyright notice and this permission notice appear in
supporting documentation or portions thereof, including modifications,
that you make.
EGENIX.COM SOFTWARE GMBH DISCLAIMS ALL WARRANTIES WITH REGARD TO
THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS, IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL,
INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
WITH THE USE OR PERFORMANCE OF THIS SOFTWARE !
u1.0.7iNudosuwin32uwin16uos2uNULu /dev/nullu/etcsC(__libc_init)|(GLIBC_([0-9.]+))|(libc(_\w+)?\.so(?:\.(\d[0-9.]*))?)ui@cCs�ttjd�r'tjj|�}nt|d�}|j|�}d}xPd|ksfd|kr{tj||�}nd
}|s�|j|�}|s�Pnd}qNndd�|j �D�\}} }
}}}
|r�|r�d}n�| r&|d krd }|
}q�|
|kr�|
}q�ni|r�|d kr�d}|
rY|
|krY|
}n|r�|t
|�d
�|kr�||}q�q�n|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'|jd�n|�qS(ulatin1N(uNoneudecode(u.0us((u-/opt/alt/python33/lib64/python3.3/platform.pyu
<listcomp>�s ulibc_ver.<locals>.<listcomp>ulibcuglibcN(
uhasattruosupathurealpathuopenureadu_libc_searchusearchuNoneugroupsulenuenduclose(u
executableulibuversionu chunksizeufubinaryuposumulibcinituglibcuglibcversionusouthreadsu soversion((u-/opt/alt/python33/lib64/python3.3/platform.pyulibc_ver�sF "
#
ulibc_vercCs�tjjd�r�d}x�td�D]y}|j�}t|�dkr%|\}}nq%|dkrv|j�}q%|dkr%|jd�}|d}q%q%W|||fStjjd�rxYtd�D]H}|jd�}t|�dkr�|dd kr�d |d
|fSq�Wntjjd�r�tjd�} xHt t| �d
dd�D]*}
| |
dd
�dkr[| |
=q[q[W| r�| j
�d}| dd
d�}|||fSn|||fS(u� Tries some special tricks to get the distribution
information in case the default method fails.
Currently supports older SuSE Linux, Caldera OpenLinux and
Slackware Linux distributions.
u/var/adm/inst-log/infouSuSEiuMIN_DIST_VERSIONu
DIST_IDENTu-u/etc/.installediu OpenLinuxiu/usr/lib/setupNiuslack-version-u slackwarei����i����i����(uosupathuexistsuopenusplitulenustripuisdirulistdirurangeusort(udistnameuversionuidulineutvutaguvalueuvaluesupkguverfilesun((u-/opt/alt/python33/lib64/python3.3/platform.pyu_dist_try_harder�s:
"#
u_dist_try_harderu(\w+)[-_](release|version)u'(.+) release ([\d.]+)[^(]*(?:\((.+)\))?u1([^0-9]+)(?: release )?([\d.]+)[^(]*(?:\((.+)\))?uSuSEudebianufedorauredhatucentosumandrakeumandrivaurocksu slackwareu yellowdogugentoouUnitedLinuxu
turbolinuxuarchumageiacCs�d}d}tj|�}|dk r7t|j��Stj|�}|dk rbt|j��S|j�j�}|r�|d}t|�dkr�|d}q�nd||fS(Nuii( u_lsb_release_versionumatchuNoneutupleugroupsu_release_versionustripusplitulen(u firstlineuversionuidumul((u-/opt/alt/python33/lib64/python3.3/platform.pyu_parse_release_files
u_parse_release_fileicCs=ytjt�}Wn"tjk
r7|||fSYnX|j�xd|D]L}tj|�}|dk rI|j�\}} ||kr�|}Pq�qIqIWt |||�St
tjjt|�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|dd�S(uQ Tries to determine the name of the Linux OS distribution name.
The function first looks for a distribution release file in
/etc and then reverts to _dist_try_harder() in case no
suitable files are found.
Returns a tuple (distname,version,id) which default to the
args given as parameters.
usupported_distsufull_distribution_namei(ulinux_distribution(udistnameuversionuidusupported_dists((u-/opt/alt/python33/lib64/python3.3/platform.pyudistasudisturcCs5ddl}|jdtdd�tj|||�S(u! Portable popen() interface.
iNuuse os.popen insteadu
stackleveli(uwarningsuwarnuDeprecationWarninguosupopen(ucmdumodeubufsizeuwarnings((u-/opt/alt/python33/lib64/python3.3/platform.pyupopenssupopencCs�|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|||fSx�dD]�}y:t|�}|j�}|j�rbtjd��nWnRtjk
r�}zw#WYdd}~Xq#tk
r�}zw#WYdd}~Xq#XPq#W|||fS|j�}t j
|�}|dk r[|j�\}}}|d dkr)|dd
�}n|ddkrL|dd�}nt
|�}n|||fS(
u2 Tries to figure out the OS version used and returns
a tuple (system,release,version).
It uses the "ver" shell command for this which is known
to exists on Windows, DOS and OS/2. XXX Others too ?
In case this fails, the given parameters are used as
defaults.
uverucommand /c veru
cmd /c verucommand failedNiu.(uverucommand /c veru
cmd /c veri����i����i����i����(usysuplatformupopenureaducloseuosuerroruIOErrorustripu_ver_outputumatchuNoneugroupsu
_norm_version( usystemureleaseuversionusupported_platformsucmdupipeuinfouwhyum((u-/opt/alt/python33/lib64/python3.3/platform.pyu_syscmd_ver�s0
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(uwin32apiuRegQueryValueExuImportErroruwinreguQueryValueEx(ukeyunameudefaultuRegQueryValueExuwinreg((u-/opt/alt/python33/lib64/python3.3/platform.pyu_win32_getvalue�s
u_win32_getvaluec!CsYyTddl}ddlm}m}m}m}ddlm} m}
m}m }Wn�t
k
r�ytjWn"t
k
r�||||fSYnXXddl}
tj}|
j}|
j}|
j}|
j} d}d}
d}d}d}YnX|�}|\}}}}}d|||d @f}t|d
�rV|jdkr�d|j}q�n-|dd
�dkr�d|d
d�}n||krd}|dkr�|dkr�d}q�|dkr�d}q�|dkr�d}q�d}q�|dkr�d}q�n�||
kr�d}|dkr(d}q�|dkr||dkrId}q�|dkr^d}q�|dkrsd}q�d}q�|dkr�t|d �r�|j}nm|}yR|| |�}||d!�\}}||kr�|jd"�d.kr�|}nWntk
rYnX|dkr:||kr1d#}q�d$}q�|dkrd||kr[d%}q�d&}q�|dkr�||kr�d'}q�d(}q�d)}q�n)|s�d*||f}n||||fSy || |�}||d+�Wn||||fSYnXt|d,d/�d}t|d-|df�d}t||�}||�||||fS(0u Get additional version information from the Windows Registry
and return a tuple (version,csd,ptype) referring to version
number, CSD level (service pack), and OS type (multi/single
processor).
As a hint: ptype returns 'Uniprocessor Free' on single
processor NT machines and 'Multiprocessor Free' on multi
processor machines. The 'Free' refers to the OS version being
free of debugging code. It could also state 'Checked' which
means the OS version uses debugging code, i.e. code that
checks arguments, ranges, etc. (Thomas Heller).
Note: this function works best with Mark Hammond's win32
package installed, but also on Python 2.3 and later. It
obviously only runs on Win32 compatible platforms.
iN(uRegQueryValueExuRegOpenKeyExuRegCloseKeyuGetVersionEx(uHKEY_LOCAL_MACHINEuVER_PLATFORM_WIN32_NTuVER_PLATFORM_WIN32_WINDOWSuVER_NT_WORKSTATIONiiiu%i.%i.%ii��uservice_packuuSP%si
u
Service Pack uSPu)SOFTWARE\Microsoft\Windows\CurrentVersioniu95i
u98iZuMeupostMeiu2000u,SOFTWARE\Microsoft\Windows NT\CurrentVersionuNTuXPu
2003Serverupost2003iuproduct_typeuProductNameuServeruVistau
2008Serveru7u2008ServerR2u8u
2012Serverupost2012Serveru%i.%iu
SystemRootuCurrentBuildNumberuCurrentTypei����(ui(uwin32apiuRegQueryValueExuRegOpenKeyExuRegCloseKeyuGetVersionExuwin32conuHKEY_LOCAL_MACHINEuVER_PLATFORM_WIN32_NTuVER_PLATFORM_WIN32_WINDOWSuVER_NT_WORKSTATIONuImportErrorusysugetwindowsversionuAttributeErroruwinreguQueryValueExu OpenKeyExuCloseKeyuhasattruservice_packuservice_pack_majoruproduct_typeufinduWindowsErroru_win32_getvalueu
_norm_version(ureleaseuversionucsduptypeuwin32apiuRegQueryValueExuRegOpenKeyExuRegCloseKeyuGetVersionExuHKEY_LOCAL_MACHINEuVER_PLATFORM_WIN32_NTuVER_PLATFORM_WIN32_WINDOWSuVER_NT_WORKSTATIONuwinregu
VER_NT_SERVERuREG_SZuwinverumajuminubuildnouplaturegkeyuproduct_typeukeyunameutypeu keyCurVerubuild((u-/opt/alt/python33/lib64/python3.3/platform.pyu win32_ver�s�"&
!
u win32_verc
Csmddlm}g}|j}xG|D]?}y|||��Wq&ttfk
rd||�Yq&Xq&W|S(Ni(ugestalt(u_gestaltugestaltuappenduRuntimeErroruOSError(u selectorsudefaultugestaltuluappenduselector((u-/opt/alt/python33/lib64/python3.3/platform.pyu_mac_ver_lookup�s
u_mac_ver_lookupcCst|�dd�S(Ni(uhex(ubcd((u-/opt/alt/python33/lib64/python3.3/platform.pyu_bcd2str�su_bcd2strc Csyddl}Wntk
r(dSYnXtd�\}}|r�|d@d?}|d@d?}|d @}||fdkr�td�\}}}d|||f}q�dt|�||f}n|r�idd6dd6dd
6j|d�}nd}|||fS(u�
Thanks to Mark R. Levinson for mailing documentation links and
code examples for this function. Documentation for the
gestalt() API is available online at:
http://www.rgaros.nl/gestalt/
iNusysvusysai�ii�iii
usys1usys2usys3u%i.%i.%iu%s.%i.%iu68kiuPowerPCiui386u(usysvusysa(i
i(usys1usys2usys3(uuu(u_gestaltuImportErroruNoneu_mac_ver_lookupu_bcd2struget( u_gestaltusysvusysaumajoruminorupatchureleaseumachineuversioninfo((u-/opt/alt/python33/lib64/python3.3/platform.pyu_mac_ver_gestalt�s&
u_mac_ver_gestaltcCs�d}tjj|�sdSyddl}Wntk
rDdSYnX|j|�}|d}d}tj�j}|d kr�d}n|||fS(
Nu0/System/Library/CoreServices/SystemVersion.plistiuProductVersionuuppcuPower MacintoshuPowerPC(uuu(uppcuPower Macintosh( uosupathuexistsuNoneuplistlibuImportErroru readPlistuunameumachine(ufnuplistlibuplureleaseuversioninfoumachine((u-/opt/alt/python33/lib64/python3.3/platform.pyu_mac_ver_xml�s
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(ureleaseuversioninfoumachineuinfo((u-/opt/alt/python33/lib64/python3.3/platform.pyumac_ver�s umac_vercCsTddlm}y'|j|�}|dkr2|S|SWntk
rO|SYnXdS(Ni(uSystem(u java.languSystemugetPropertyuNoneuAttributeError(unameudefaultuSystemuvalue((u-/opt/alt/python33/lib64/python3.3/platform.pyu
_java_getprop�s
u
_java_getpropcCs�yddl}Wn"tk
r4||||fSYnXtd|�}td|�}|\}}}td|�}td|�}td|�}|||f}|\}} }
td|
�}
td |�}td
| �} || |
f}||||fS(uV Version interface for Jython.
Returns a tuple (release,vendor,vminfo,osinfo) with vminfo being
a tuple (vm_name,vm_release,vm_vendor) and osinfo being a
tuple (os_name,os_version,os_arch).
Values which cannot be determined are set to the defaults
given as parameters (which all default to '').
iNujava.vendorujava.versionujava.vm.nameujava.vm.vendorujava.vm.versionujava.os.archujava.os.nameujava.os.version(u java.languImportErroru
_java_getprop(ureleaseuvendoruvminfouosinfoujavauvm_nameu
vm_releaseu vm_vendoruos_nameu
os_versionuos_arch((u-/opt/alt/python33/lib64/python3.3/platform.pyujava_ver�s"
ujava_vercCs|dkrd|||fS|dkr�|dkrB|||fS|jd�}|r�yt|d�}Wntk
rYq�X|d}t|�|d<dj|�}n|dkr�d }q
d }nC|d
kr�d}|r�|d}q
d
}n|dkr
d}n|||fS(u� Returns (system,release,version) aliased to common
marketing names used for some systems.
It also does some reordering of the information in some cases
where it would otherwise cause confusion.
uRhapsodyuMacOS X ServeruSunOSu5u.iiu6uSolarisuIRIX64uIRIXu (64bit)u64bituwin32uwin16uWindows(uwin32uwin16(usplituintu
ValueErrorustrujoin(usystemureleaseuversionulumajor((u-/opt/alt/python33/lib64/python3.3/platform.pyusystem_aliass2
usystem_aliascGs djdd�tt|�D��}|jdd�}|jdd�}|jdd�}|jdd�}|jd d�}|jd
d�}|jdd�}|jdd�}|jd
d�}x+|jdd�}||kr�Pn|}q�x$|ddkr|dd�}q�W|S(uq Helper to format the platform string in a filename
compatible format e.g. "system-version-machine".
u-css|]}|j�VqdS(N(ustrip(u.0ux((u-/opt/alt/python33/lib64/python3.3/platform.pyu <genexpr>Usu_platform.<locals>.<genexpr>u u_u/u\u:u;u"u(u)uunknownuu--iNi����i����(ujoinufilterulenureplace(uargsuplatformucleaned((u-/opt/alt/python33/lib64/python3.3/platform.pyu _platformOs$% u _platformcCsWyddl}Wntk
r(|SYnXy|j�SWn|jk
rR|SYnXdS(u8 Helper to determine the node name of this machine.
iN(usocketuImportErrorugethostnameuerror(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_symlinkscCs�tjdkr|Sytjd|tf�}Wnttjfk
rQ|SYnX|j�j�}|j �}|s}|r�|S|SdS(u. Interface to the system's uname command.
udosuwin32uwin16uos2uuname %s 2> %sN(udosuwin32uwin16uos2(
usysuplatformuosupopenuDEV_NULLuAttributeErroruerrorureadustripuclose(uoptionudefaultufuoutputurc((u-/opt/alt/python33/lib64/python3.3/platform.pyu
_syscmd_uname�s
u
_syscmd_unamecCs�tjdkr|St|�}y+tjd|gdtjdtj�}Wnttj fk
rk|SYnX|j
�djd �}|j�}|s�|r�|S|Sd
S(u� Interface to the system's file command.
The function uses the -b option of the file command to have it
omit the filename in its output. Follow the symlinks. It returns
default in case the command should fail.
udosuwin32uwin16uos2ufileustdoutustderriulatin-1N(udosuwin32uwin16uos2(
usysuplatformu_follow_symlinksu
subprocessuPopenuPIPEuSTDOUTuAttributeErroruosuerrorucommunicateudecodeuwait(utargetudefaultuprocuoutputurc((u-/opt/alt/python33/lib64/python3.3/platform.pyu_syscmd_file�s
u_syscmd_fileu WindowsPEuWindowsuMSDOScCs�|scddl}y|jd�}Wn$|jk
rK|jd�}YnXt|d�d}n|r{t|d�}nd}|r�|tjkr�tjtkr�ttj\}}|r�|}n|r�|}q�n||fSd|kr�||fSd |krd
}n*d|kr$d}nd
|kr9d}nd|krNd}nTd|krxd|krod}q�d}n*d|kr�d}nd|kr�d}n||fS(u� Queries the given executable (defaults to the Python interpreter
binary) for various architecture information.
Returns a tuple (bits,linkage) which contains information about
the bit architecture and the linkage format used for the
executable. Both values are returned as strings.
Values that cannot be determined are returned as given by the
parameter presets. If bits is given as '', the sizeof(pointer)
(or sizeof(long) on Python version < 1.5.2) is used as
indicator for the supported pointer size.
The function relies on the system's "file" command to do the
actual work. This is available on most if not all Unix
platforms. On some non-Unix platforms where the "file" command
does not exist and the executable is set to the Python interpreter
binary defaults from _default_architecture are used.
iNuPuliubituu
executableu32-bitu32bituN32un32bitu64-bitu64bituELFuPEuWindowsu WindowsPEuCOFFuMS-DOSuMSDOS( ustructucalcsizeuerrorustru_syscmd_fileusysu
executableuplatformu_default_architecture(u
executableubitsulinkageustructusizeufileoutubul((u-/opt/alt/python33/lib64/python3.3/platform.pyuarchitecture�sL
uarchitectureuuname_resultu-system node release version machine processorcCs�d}tdk rtSd}ytj�\}}}}}Wntk
rUd}YnX|s�ttd|||||f��rW|r�tj}d}d}t �}d}nd}|dkrPt
�\}}}} |r�|r�d}n|s/dtjkrtjjdd�}q/tjjdd�}n|sPtjjd|�}qPn|r�t
|�\}}}|dkr�d }q�|d
kr�|d kr�d }d|dd
�kr�d}q�d}q�n|dkr|s�|dkr�d}q�d}nd }qW|dd�dkrWt�\}}
}}d}dj|�}|sT|
}qTqWn|dkr�|sv|dkr�|}d}nyddl}
Wntk
r�Yq�X|
jdd�\}}|dkr�d}q�d}n|s�tdd�}n|dkr
d}n|dkr"d}n|dkr7d}n|dkrLd}n|dkrad}n|dkrvd}n|d
kr�|d kr�d }d}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$_CPUi�uAlphauVAXu-puunknown(uwin32uwin16(u_uname_cacheuNoneuosuunameuAttributeErrorulistufilterusysuplatformu_nodeu win32_veruenvironugetu_syscmd_verujava_verujoinuvms_libuImportErrorugetsyiu
_syscmd_unameuuname_result(uno_os_unameu processorusystemunodeureleaseuversionumachineuuse_syscmd_verucsduptypeuvendoruvminfouosinfouvms_libucsidu
cpu_number((u-/opt/alt/python33/lib64/python3.3/platform.pyuunames�
+
uunamecCs
t�jS(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.pyusystem�susystemcCs
t�jS(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.pyunode�sunodecCs
t�jS(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.pyurelease�sureleasecCs
t�jS(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.pyuversion�suversioncCs
t�jS(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.pyumachine�sumachinecCs
t�jS(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 processor�s
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|kr�d}|jd�rmtj|�}ntj|�}|dkr�t dt
|���n|j�\}}}d}d}n=tjjd�r8d}t
j|�}|dkrt dt
|���n|j�\}}}} }
tj}n�d|kr�d}tj|�}|dkr~t dt
|���n|j�\}}}} d}nct
j|�}|dkr�t d t
|���n|j�\}}}} }d
}|d| }ttd�r&tj\}
}}n0ttd
�rJtj\}
}}nd}d}|jd�}
t|
�dkr�|
jd�dj|
�}n|||||||f}|t|<|S(u� Returns a parsed version of Python's sys.version as tuple
(name, version, branch, revision, buildno, builddate, compiler)
referring to the Python implementation name, version, branch,
revision, build number, build date/time as string and the compiler
identification string.
Note that unlike the Python sys.version, the returned value
for the Python version will always include the patchlevel (it
defaults to '.0').
The function returns empty strings for tuple entries that
cannot be determined.
sys_version may be given to parse an alternative version
string, e.g. if the version was read from a different Python
interpreter.
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(usys_versionuresultunameumatchuversionualt_versionucompilerubuildnou builddateu buildtimeu_ubranchurevisionul((u-/opt/alt/python33/lib64/python3.3/platform.pyu_sys_version�sn
u_sys_versioncCst�dS(uR Returns a string identifying the Python implementation.
Currently, the following implementations are identified:
'CPython' (C implementation of Python),
'IronPython' (.NET implementation of Python),
'Jython' (Java implementation of Python),
'PyPy' (Python implementation of Python).
i(u_sys_version(((u-/opt/alt/python33/lib64/python3.3/platform.pyupython_implementation[supython_implementationcCst�dS(u� Returns the Python version as string 'major.minor.patchlevel'
Note that unlike the Python sys.version, the returned value
will always include the patchlevel (it defaults to 0).
i(u_sys_version(((u-/opt/alt/python33/lib64/python3.3/platform.pyupython_versionhsupython_versioncCstt�djd��S(u� Returns the Python version as tuple (major, minor, patchlevel)
of strings.
Note that unlike the Python sys.version, the returned value
will always include the patchlevel (it defaults to 0).
iu.(utupleu_sys_versionusplit(((u-/opt/alt/python33/lib64/python3.3/platform.pyupython_version_tuplers upython_version_tuplecCst�dS(u� Returns a string identifying the Python implementation
branch.
For CPython this is the Subversion branch from which the
Python binary was built.
If not available, an empty string is returned.
i(u_sys_version(((u-/opt/alt/python33/lib64/python3.3/platform.pyu
python_branch}su
python_branchcCst�dS(u� Returns a string identifying the Python implementation
revision.
For CPython this is the Subversion revision from which the
Python binary was built.
If not available, an empty string is returned.
i(u_sys_version(((u-/opt/alt/python33/lib64/python3.3/platform.pyupython_revision�supython_revisioncCst�dd�S(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.pyupython_build�supython_buildcCst�dS(uS Returns a string identifying the compiler used for compiling
Python.
i(u_sys_version(((u-/opt/alt/python33/lib64/python3.3/platform.pyupython_compiler�supython_compilerc
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||�}
n0tt 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_cacheugetuNoneuunameusystem_aliasu win32_veru _platformudistulibc_verusysu
executableujava_veruarchitecture(ualiaseduterseuresultusystemunodeureleaseuversionumachineu processorureluversucsduptypeuplatformudistnameudistversionudistidulibcnameulibcversionuruvuvminfouos_nameu
os_versionuos_archubitsulinkage((u-/opt/alt/python33/lib64/python3.3/platform.pyuplatform�sP
uplatformu__main__uterseu--terseu
nonaliasedu--nonaliased(udosuwin32uwin16uos2(uSuSEudebianufedorauredhatucentosumandrakeumandrivaurocksu slackwareu yellowdogugentoouUnitedLinuxu
turbolinuxuarchumageiai����(uwin32uwin16udosuos2(uuu(uuu(uuu(uu WindowsPE(uuWindows(uuMSDOS(Nu__doc__u
__copyright__u__version__ucollectionsusysuosureu
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_verusystem_aliasu _platformu_nodeu_follow_symlinksu
_syscmd_unameu_syscmd_fileu_default_architectureuarchitectureu
namedtupleuuname_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_revisionupython_buildupython_compileru_platform_cacheu__name__uargvuterseualiaseduprintuexit(((u-/opt/alt/python33/lib64/python3.3/platform.pyu<module>
s�d0
80 5
2�(#6
T �
d
R
?>