b374k
m1n1 1.01
Apache/2.2.15 (CentOS)
Linux obd60-6c49958d75-2q7cw 5.4.0-174-generic #193-Ubuntu SMP Thu Mar 7 14:29:28 UTC 2024 x86_64
uid=48(apache) gid=48(apache) groups=48(apache)
server ip : 172.67.192.52 | your ip : 10.244.126.0
safemode OFF
 >  / usr / lib64 / python2.6 /
Filename/usr/lib64/python2.6/platform.pyo
Size37.87 kb
Permissionrw-r--r--
Ownerapache
Create time23-Dec-2025 17:41
Last modified20-Jun-2019 19:45
Last accessed22-Apr-2026 05:26
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
Ñò
§ÚêLc@sËdZdZdZddkZddkZddkZddkZeid�Zei dddd�Z
d �Z eid
�Z eid �Z
eid �ZdZZd�Zd�Zdddedd�Zddded�Zdd[d ��YZd!dd"�Zdd#�Zeid$�Zdddd\d)�Zdd*�Zddddd+�Zdd,�Zd-�Zd.�Zd/�Zdd]dd0�Z d1�Z!ddd^d_d2�Z"d3�Z#d4�Z$dd5�Z%e&ei'd6�p.ei'i(ei'i)ei*ei'i+d7�Z,n
ei'i-Z,d8�Z.dd9�Z/dd:�Z0hd`d%6dad&6dbd'6Z1eid>�i2Z3ei ddd?�Z4da5d@�Z6dA�Z7dB�Z8dC�Z9dD�Z:dE�Z;dF�Z<eidG�Z=eidH�Z>eidI�Z?hZ@ddJ�ZAdK�ZBdL�ZCdM�ZDdN�ZEdO�ZFdP�ZGdQ�ZHdR�ZIhZJdSdSdT�ZKeLdUjo]dVeiMjp
dWeiMjZNdXeiMjo
dYeiMjZOeKeOeN�GHeiPdS�ndS(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:[email protected]
Copyright (c) 2000-2010, eGenix.com Software GmbH; mailto:[email protected]

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.6iÿÿÿÿNsC(__libc_init)|(GLIBC_([0-9.]+))|(libc(_\w+)?\.so(?:\.(\d[0-9.]*))?)ticCs�ttid�otii|�}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
Csûtiid�o¹td�i�}d}x�|D]�}ti|�}t|�djo|\}}nq2|djoti|�}q2|djo ti|d�}|d}q2q2W|||fStiid�ootd�i�}xZ|D]N}ti|d�} t| �djo#| dd jod | d
|fSqøWntii d �o�ti
d �}
xDt t|
�d
d d �D]&} |
| d
djo |
| =q�q�W|
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/setupiÿÿÿÿisslack-version-t slackware(
RRtexistsRt readlineststringtsplitR
tstriptisdirtlistdirtrangetsort( tdistnameRtidtinfotlinettvttagtvaluetvaluestpkgtverfilestn((s /usr/lib64/python2.6/platform.pyt_dist_try_harder²sD 

$
s(\w+)[-_](release|version)s'(.+) release ([\d.]+)[^(]*(?:\((.+)\))?s1([^0-9]+)(?: release )?([\d.]+)[^(]*(?:\((.+)\))?RtdebiantfedoratredhattcentostmandraketmandrivatrocksR#t yellowdogtgentoot UnitedLinuxt
turbolinuxcCsÁd}d}ti|�}|dj ot|i��Sti|�}|dj ot|i��Stiti|��}|o/|d}t |�djo|d}q´nd||fS(NRii(
t_lsb_release_versiontmatchtNonettupleR t_release_versionR&R'R(R
(t firstlineRR.Rtl((s /usr/lib64/python2.6/platform.pyt_parse_release_fileøs


cCs�x�dd 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|i�xh|D]P}ti|�}|dj o.|i�\}} ||jo |}Pq�qGqGWt|||�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|dd�S(sQ Tries to determine the name of the Linux OS distribution name.

The function first looks for a distribution release file in
/etc and then reverts to _dist_try_harder() in case no
suitable files are found.

Returns a tuple (distname,version,id) which default to the
args given as parameters.

R_R`i(Rg(R-RR.R_((s /usr/lib64/python2.6/platform.pytdist]st_popencBsbeZdZdZdZdZdZddd�Zd�Z d�Z
e i e i
d�ZeZRS(s Fairly portable (alternative) popen implementation.

This is mostly needed in case os.popen() is not available, or
doesn't work as advertised, e.g. in Win9X GUI programs like
PythonWin or IDLE.

Writing to the pipe is currently not supported.

RR[cCsv|djo
td�nddk}|i�|_}ti|d|�t|d�|_||_||_ dS(NR[s)popen()-emulation only supports read modeiÿÿÿÿs > %sR(
t
ValueErrorttempfiletmktempttmpfileRtsystemRtpipetbufsizetmode(tselftcmdRqRpRkRm((s /usr/lib64/python2.6/platform.pyt__init__s

  cCs
|ii�S(N(RoR (Rr((s /usr/lib64/python2.6/platform.pyR �scCs"|idj o|ii�SdS(N(RpRFRoR%(Rr((s /usr/lib64/python2.6/platform.pyR%�scCs\|io|ii�}nd}|io+y||i�WqX|j
oqXXn|S(Niÿ(RoRRm(RrtremoveR\trc((s /usr/lib64/python2.6/platform.pyR�s

 N(t__name__t
__module__t__doc__RmRFRoRpRqRtR R%RtunlinkR\Rt__del__(((s /usr/lib64/python2.6/platform.pyRios
  R[c Csùd}tiidd�djo3yddk}Wntj
oqUX|i}n|djohttd�oNti}ti djo1y|d�Wq¼ti
j
o
t }q¼XqÆqÊt }n|djo|||�S||||�SdS(s! Portable popen() interface.
tOSRt
Windows_NTiÿÿÿÿNtpopentwin32( RFRtenvirontgett win32pipet ImportErrorR~RtsystplatformR\Ri(RsRqRpR~R�((s /usr/lib64/python2.6/platform.pyR~¥s&

 

cCs�ti|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_versionÆs s((?:([\w ]+) ([\w.]+) .*Version ([\d.]+))Rtwin16tdostos2c CsFti|jo|||fSx�dD]u}y9t|�}|i�}|i�otid�nWn2tij
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 failediÿÿÿÿR�(R�scommand /c vers
cmd /c verN(R�R�R~R RRR\tIOErrorR&R(t _ver_outputRERFR R�( RntreleaseRtsupported_platformsRsRoR/twhyR((s /usr/lib64/python2.6/platform.pyt _syscmd_verÛs2  


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(twin32apiR�R�t_winregt QueryValueEx(tkeytnametdefaultR�R�((s /usr/lib64/python2.6/platform.pyt_win32_getvalues cCsNyTddk}ddkl}l}l}l}ddkl} l}
l} l } Wn�t
j
o�y 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}q¼n·||
jo~d}|djo
d}q¼|djoO|djo
d}q�|djo
d}q�|djo
d}q�d}q¼|d joôt|d!�o
|i}nr| }yU|| |�}||d"�\}}||jo |id#�djo
|}nWntj
onX|djo!|| jo
d$}q�d%}q�|djo!|| jo
d&}q�d'}q�d(}q¼n,|pd)||f}n||||fSy || |�}||d*�Wn||||fSXt|d+d-�d}t|d,|df�d}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.

iÿÿÿÿN(R�t RegOpenKeyExt RegCloseKeyt GetVersionEx(tHKEY_LOCAL_MACHINEtVER_PLATFORM_WIN32_NTtVER_PLATFORM_WIN32_WINDOWStVER_NT_WORKSTATIONiiis%i.%i.%iiÿÿt 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(R�R�R¢R£R¤twin32conR¥R¦R§R¨R�R�tgetwindowsversiontAttributeErrorR�R�t OpenKeyExtCloseKeyRR©tservice_pack_majorR´tfindt WindowsErrorR¡R�(R�RtcsdtptypeR�R�R¢R£R¤R¥R¦R§R¨R�t
VER_NT_SERVERtREG_SZtwinvertmajtmintbuildnotplattregkeyR´R�R�ttypet 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(RÔtMacOSR�t RuntimeErrortError(t selectorsR RÔRÕRJR�tselector((s /usr/lib64/python2.6/platform.pyt_mac_ver_lookup¿s  cCst|�dS(Ni(thex(tbcd((s /usr/lib64/python2.6/platform.pyt_bcd2strÌsc Cs
yddk}ddk}Wntj
odSXtd�\}}|o�|d@d?}|d@d?}|d @}||fdjo,td�\}}}d|||f}qÎdt|�||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/
iÿÿÿÿNtsysvtsysaiÿiiðiii
tsys1tsys2tsys3s%i.%i.%is%s.%i.%it68kitPowerPCiti386R(ssysvssysa(i
i(RàRáRâ(RÔRÕR�RFRÚRÝR�t versioninfo( RÔRÕRÞRßtmajortminortpatchR�tmachine((s /usr/lib64/python2.6/platform.pyt_mac_ver_gestaltÐs&  

cCs�d}tii|�pdSyddk}Wntj
odSX|i|�}|d}d }ti�d}|d
jo
d}n|||fS( Ns0/System/Library/CoreServices/SystemVersion.plistiÿÿÿÿtProductVersionRitppcsPower MacintoshRä(RRR(RísPower Macintosh(RRR$RFtplistlibR�t readPlisttuname(tfnRîtplR�RæRê((s /usr/lib64/python2.6/platform.pyt _mac_ver_xmløs


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(RóRFRë(R�RæRêR/((s /usr/lib64/python2.6/platform.pytmac_ver
s 
 
cCsTddkl}y)|i|�}|djo|S|SWntj
o|SXdS(Niÿÿÿÿ(tSystem(t java.langRõt getPropertyRFRÁ(R�R RõR3((s /usr/lib64/python2.6/platform.pyt
_java_getprop&s
c Cs÷yddk}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 '').

iÿÿÿÿNs java.vendors java.versions java.vm.namesjava.vm.vendorsjava.vm.versions java.os.archs java.os.namesjava.os.version(RöR�Rø( R�tvendortvminfotosinfotjavatvm_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
oqºX|d}t|�|d<ti|d�}n|djo
d }q$d }nJ|d
jo%d }|o|d }q$d
}n|djo
d}n|||fS(sá Returns (system,release,version) aliased to common
marketing names used for some systems.

It also does some reordering of the information in some cases
where it would otherwise cause confusion.

tRhapsodysMacOS X ServertSunOSRMR�iit6tSolaristIRIX64tIRIXs (64bit)t64bitRR�tWindows(swin32R�(R&R'R�RjR�R�(RnR�RRJRç((s /usr/lib64/python2.6/platform.pyt system_aliasTs2










cGs)tittitt|��d�}ti}||dd�}||dd�}||dd�}||dd�}||dd�}||dd�}||d d�}||d
d�}||d d �}x-||d
d�}||joPn|}qÕx |ddjo|d }qW|S(sq Helper to format the platform string in a filename
compatible format e.g. "system-version-machine".
R!t t_t/s\t:t;t"t(t)tunknownRs--iÿÿÿÿ(R&R�R�R(tfilterR
treplace(targsR�Rtcleaned((s /usr/lib64/python2.6/platform.pyt _platform�s.   
 c CsSyddk}Wntj
o|SXy|i�SWn|ij
o|SXdS(s8 Helper to determine the node name of this machine.
iÿÿÿÿN(tsocketR�t gethostnameR\(R R((s /usr/lib64/python2.6/platform.pyt_node®stabspathcCs-||�p||�|�}n||�S(N((RtisabsR�tgetcwdtnormpath((s /usr/lib64/python2.6/platform.pyt_abspathÀs
cCsat|�}xNtii|�o:tiitiitii|�ti|���}qW|S(sT In case filepath is a symlink, follow it until a
real file is reached.
(R"RRtislinkR!R�tdirnametreadlink(tfilepath((s /usr/lib64/python2.6/platform.pyt_follow_symlinksÍs   2cCs�tidjo|Sytid|�}Wnttifj
o|SXti|i��}|i �}| p|o|S|SdS(s. Interface to the system's uname command.
R�RR�R�suname %s 2> /dev/nullN(R�swin32swin16R�(
R�R�RR~RÁR\R&R(R R(toptionR RRXRv((s /usr/lib64/python2.6/platform.pyt
_syscmd_unameØs cCs¡tid 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.

R�RR�R�Rs\"sfile "%s" 2> /dev/nullN(sdosswin32swin16sos2( R�R�R'RRR~RÁR\R&R(R R(ttargetR RRXRv((s /usr/lib64/python2.6/platform.pyt _syscmd_fileês
 t WindowsPER tMSDOSs[\s,]c CsÜ|p_ddk}y|id�}Wn%|ij
o|id�}nXt|d�d}n|ot|d�}nd}| od|tijoTtitjo9tti\}}|o
|}n|o
|}qçn||fSt |�d}d |jo ||fSd
|jo
d }n/d |jo
d
}nd|jo
d}nd|jo
d}n]d|jo!d|jo
d}qÒd}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.

iÿÿÿÿNtPRJitbitRiRs32-bitt32bittN32tn32bits64-bitR
tELFtPER R,tCOFFsMS-DOSR-(
tstructtcalcsizeR\R�R+R�RR�t_default_architecturet_architecture_split( RtbitstlinkageR6tsizeRXtbRJtfileout((s /usr/lib64/python2.6/platform.pyt architecturesN 
 
 















cCsõd}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 }q«d}q¯n|d jo2|p!|djo
d}qäd}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.0iR·R�R0t16bitiRütJavas, tmacRÕtOpenVMSt0iÿÿÿÿNsSYI$_CPUi�tAlphatVAXs-pR(swin32swin16(t _uname_cacheRFRRðRÁRR�R�RRÓR�R�R�RR&R�R�Rôtvms_libR�tgetsyiR)(t no_os_unamet processorRntnodeR�RRêtuse_syscmd_verRÇRÈRùRúRûtstagetnonrelRKtcsidt
cpu_number((s /usr/lib64/python2.6/platform.pyRðhs�

 '  




























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

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

i(Rð(((s /usr/lib64/python2.6/platform.pyRnñscCs t�dS(s� Returns the computer's network name (which may not be fully
qualified)

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

i(Rð(((s /usr/lib64/python2.6/platform.pyROúscCs t�dS(s� Returns the system's release, e.g. '2.2.0' or 'NT'

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

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

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

i(Rð(((s /usr/lib64/python2.6/platform.pyR
scCs t�dS(st Returns the machine type, e.g. 'i386'

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

i(Rð(((s /usr/lib64/python2.6/platform.pyRêscCs t�dS(s Returns the (true) processor name, e.g. 'amdk6'

An empty string is returned if the value cannot be
determined. Note that many platforms do not provide this
information or simply return the same value as for machine(),
e.g. NetBSD does this.

i(Rð(((s /usr/lib64/python2.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}
n�t i|�}|djotd t|���n|i �\}} }
} }t
td
�oti\}}}nd }d}d}|
d | }
ti|d
�} t| �djo#| id�ti| 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: %sRiRütJythons&failed to parse Jython sys.version: %ss'failed to parse CPython sys.version: %st
subversiontCPythonR
R�iRGN(RFR�Rt_sys_version_cacheR�t_ironpython_sys_version_parserRERjtreprR R�t_jython_sys_version_parsert_sys_version_parserRRWR&R'R
R�R�(
t sys_versiontresultR�RERt alt_versiontcompilertbranchtrevisionRÎt builddatet buildtimeRJ((s /usr/lib64/python2.6/platform.pyt _sys_version=sb





 



c
Cshti�xWddfddfd 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_version�s

 
cCs t�dS(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_implementation¤s
cCs t�dS(sÈ Returns the Python version as string 'major.minor.patchlevel'

Note that unlike the Python sys.version, the returned value
will always include the patchlevel (it defaults to 0).

i(Rf(((s /usr/lib64/python2.6/platform.pytpython_version°scCsttit�dd��S(sÝ Returns the Python version as tuple (major, minor, patchlevel)
of strings.

Note that unlike the Python sys.version, the returned value
will always include the patchlevel (it defaults to 0).

iR�(RGR&R'Rf(((s /usr/lib64/python2.6/platform.pytpython_version_tupleºs cCs t�dS(sè Returns a string identifying the Python implementation
branch.

For CPython this is the Subversion branch from which the
Python binary was built.

If not available, an empty string is returned.

i(Rf(((s /usr/lib64/python2.6/platform.pyt
python_branchÅs cCs t�dS(sì Returns a string identifying the Python implementation
revision.

For CPython this is the Subversion revision from which the
Python binary was built.

If not available, an empty string is returned.

i(Rf(((s /usr/lib64/python2.6/platform.pytpython_revisionÓs cCst�dd!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_buildàscCs t�dS(sS Returns a string identifying the compiler used for compiling
Python.

i(Rf(((s /usr/lib64/python2.6/platform.pytpython_compilerèsic Csuti||fd�}|dj o|St�\}}}}}}||jo
d}n|ot|||�\}}}n|djoKt|�\} }
} } |ot||�}
qat|||| �}
n�|d jo�td�\}}}|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 tLinuxtwithRDtonRÕN(Rq(
t_platform_cacheR�RFRðR RÓRRhRR�RRR?(taliasedtterseR_RnROR�RRêRNtreltversRÇRÈR�R-t distversiontdistidtlibcnamet libcversionR[tvRúRRRR:R;((s /usr/lib64/python2.6/platform.pyR�ôsP





 
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__R�R&RtretcompileR
RRR8R]RDRHt_supported_distsRKRZRgRhRiRFR~R�R�R�R¡RÓRÚRÝRëRóRôRøRR RRRRRR�R R!R"RR'R)R+R8R'R9R?RJRðRnROR�RRêRNR]R\RZRYRfRiRjRkRlRmRnRoRpRtR�RwtargvRvRutexit(((s /usr/lib64/python2.6/platform.pyt<module>
s¤e0  3 2     5  6!   2 �
 (  # 6 $    
W �
    X 


R