config root man

Current Path : /compat/linux/proc/self/root/usr/local/lib/python2.5/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //compat/linux/proc/self/root/usr/local/lib/python2.5/platform.pyc

hRc@s;dZdZdZddkZddkZddkZddkZeidZei	ddddZ
d	Zeid
ZeidZ
ddddEdZddFdYZdddZddZeidZddddGdZddZdddddZddZd ZddHdd!Zd"ZdddIdJd#Zd$Zd%Zdd&Zeei d'p.ei i!ei i"ei#ei i$d(Z%n
ei i&Z%d)Z'dd*Z(dd+Z)hdKd<dLd<dMd<Z*eid/i+Z,ei	ddd0Z-da.d1Z/d2Z0d3Z1d4Z2d5Z3d6Z4d7Z5eid8Z6da7d9Z8d:Z9d;Z:d<Z;d=Z<hZ=d>d>d?Z>e?d@jo]dAei@jp
dBei@jZAdCei@jo
dDei@jZBe>eBeAGHeiCd>ndS(Ns8 This module tries to retrieve as much platform-identifying data as
    possible. It makes this information available via function APIs.

    If called from the command line, it prints the platform
    information concatenated as single string to stdout. The output
    format is useable as part of a filename.

s
    Copyright (c) 1999-2000, Marc-Andre Lemburg; mailto:mal@lemburg.com
    Copyright (c) 2000-2003, eGenix.com Software GmbH; mailto:info@egenix.com

    Permission to use, copy, modify, and distribute this software and its
    documentation for any purpose and without fee or royalty is hereby granted,
    provided that the above copyright notice appear in all copies and that
    both that copyright notice and this permission notice appear in
    supporting documentation or portions thereof, including modifications,
    that you make.

    EGENIX.COM SOFTWARE GMBH DISCLAIMS ALL WARRANTIES WITH REGARD TO
    THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
    FITNESS, IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL,
    INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
    FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
    NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
    WITH THE USE OR PERFORMANCE OF THIS SOFTWARE !

s1.0.4iNsC(__libc_init)|(GLIBC_([0-9.]+))|(libc(_\w+)?\.so(?:\.(\d[0-9.]*))?)ticCsgt|d}|i|}d}x,ti||}|p(|i|}|pPnd}q'n|i\}}	}
}}}
|o|o
d}n|	o8|djod}|
}qD|
|jo
|
}qDng|o_|djoNd}|
|jo
|
}n|o&|t||jo||}q@qDn|i}q'|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.

    trbitlibctglibc(topentreadt_libc_searchtsearchtgroupstlentendtclose(t
executabletlibtversiont	chunksizetftbinarytpostmtlibcinitRtglibcversiontsotthreadst	soversion((s$/usr/local/lib/python2.5/platform.pytlibc_verzs<







c
Cstiidotdi}d}x|D]}ti|}t|djo|\}}nq2|djoti|}q2|djo ti|d}|d}q2q2W|||fSntiidortdi}x]|D]Q}ti|d}	t|	djo&|	dd	jod	|	d
|fSqqWntii	doti
d}
xDtt|
d
ddD]&}|
|d
 djo|
|=qqW|
o/|
id}|
dd
}|||fSqn|||fS(s Tries some special tricks to get the distribution
        information in case the default method fails.

        Currently supports older SuSE Linux, Caldera OpenLinux and
        Slackware Linux distributions.

    s/var/adm/inst-log/infotSuSEitMIN_DIST_VERSIONt
DIST_IDENTt-s/etc/.installedit	OpenLinuxis/usr/lib/setupiisslack-version-t	slackware(
tostpathtexistsRt	readlineststringtsplitR	tstriptisdirtlistdirtrangetsort(tdistnameRtidtinfotlinettvttagtvaluetvaluestpkgtverfilestn((s$/usr/local/lib/python2.5/platform.pyt_dist_try_hardersD	

$
s(\w+)[-_](release|version)s([\d.]+)[^(]*(?:\((.+)\))?Rtdebiantfedoratredhattmandrakec	Cspytid}Wn#tij
o|||fSnXxb|D]J}ti|}|o.|i\}}||jo|}Pqq@q@Wt|||Std|d}	|	i}
|	i	t
i|
}|o8|i\}}|o
|}n|o
|}qcnOti
ti|
}
|
o/|
d}t|
djo|
d}qcn|||fS(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.

    s/etcs/etc/trii(R R(terrort_release_filenametmatchRR6RtreadlineRt_release_versionRR$R%R&R	(R+RR,tsupported_diststetctfileRt	_distnametdummyRt	firstlinet_versiont_idtl((s$/usr/local/lib/python2.5/platform.pytdists:




t_popencBsbeZdZdZdZdZdZdddZdZ	dZ
eiei
dZeZRS(s Fairly portable (alternative) popen implementation.

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

        Writing to the pipe is currently not supported.

    RR;cCsv|djo
tdnddk}|i|_}ti|d|t|d|_||_||_	dS(NR;s)popen()-emulation only supports read modeis > %sR(
t
ValueErrorttempfiletmktempttmpfileR tsystemRtpipetbufsizetmode(tselftcmdRSRRRMRO((s$/usr/local/lib/python2.5/platform.pyt__init__!s

	cCs
|iiS(N(RQR(RT((s$/usr/local/lib/python2.5/platform.pyR,scCs%|idj	o|iiSndS(N(RRtNoneRQR#(RT((s$/usr/local/lib/python2.5/platform.pyR#0scCs\|io|ii}nd}|io+y||iWqX|j
oqXXn|S(Ni(RQRRO(RTtremoveR<trc((s$/usr/local/lib/python2.5/platform.pyR5s

	N(t__name__t
__module__t__doc__RORWRQRRRSRVRR#R tunlinkR<Rt__del__(((s$/usr/local/lib/python2.5/platform.pyRKs
		R;cCsd}tiidddjo3yddk}Wntj
oqUX|i}n|djohttdoNti}ti	djo1y|dWqti
j
o
t}qXqqt}n|djo|||Sn||||SdS(s! Portable popen() interface.
    tOSRt
Windows_NTiNtpopentwin32(RWR tenvirontgett	win32pipetImportErrorRathasattrtsystplatformR<RK(RURSRRRaRe((s$/usr/local/lib/python2.5/platform.pyRaGs&

	

cCsti|d}|o|i|nytt|}Wntj
o
|}nXtt|}ti|d d}|S(s Normalize the version and build strings and return a single
        version string using the format major.minor.build (or patchlevel).
    t.i(R$R%tappendtmaptintRLtstrtjoin(RtbuildRItintststrings((s$/usr/local/lib/python2.5/platform.pyt
_norm_versionhss((?:([\w ]+) ([\w.]+) .*Version ([\d.]+))Rbtwin16tdostos2c	CsCti|jo|||fSnxdD]u}y9t|}|i}|iotidnWn2tij
o}q(q(tj
o}q(q(XPq(W|||fSti	|}t
i|}|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 failediRj(Rwscommand /c vers
cmd /c ver(RhRiRaRRR R<tIOErrorR$R&t_ver_outputR>RRs(	RPtreleaseRtsupported_platformsRURQR-twhyR((s$/usr/local/lib/python2.5/platform.pyt_syscmd_ver}s2

cCs3ddkl}y|||SWn|SnXdS(se Read a value for name from the registry key.

        In case this fails, default is returned.

    i(tRegQueryValueExN(twin32apiR~(tkeytnametdefaultR~((s$/usr/local/lib/python2.5/platform.pyt_win32_getvalues
cCsyddk}Wn#tj
o||||fSnXddkl}l}l}l}ddkl}	l}
l	}|\}}
}}}d||
|d@f}|d djod	|d}n||jo}d
}|djoO|
djo
d
}qL|
djo
d}qL|
djo
d}qLd}q|djo
d}qn||
jo}d}|djo
d}q|djoO|
djo
d}q|
djo
d}q|
djo
d}qd}qn,|pd||
f}n||||fSy ||	|}||dWn||||fSnXt
|dd!d}t
|d |dfd}t||}||||||fS("s Get additional version information from the Windows Registry
        and return a tuple (version,csd,ptype) referring to version
        number, CSD level and OS type (multi/single
        processor).

        As a hint: ptype returns 'Uniprocessor Free' on single
        processor NT machines and 'Multiprocessor Free' on multi
        processor machines. The 'Free' refers to the OS version being
        free of debugging code. It could also state 'Checked' which
        means the OS version uses debugging code, i.e. code that
        checks arguments, ranges, etc. (Thomas Heller).

        Note: this function only works if Mark Hammond's win32
        package is installed and obviously only runs on Win32
        compatible platforms.

    iN(R~tRegOpenKeyExtRegCloseKeytGetVersionEx(tHKEY_LOCAL_MACHINEtVER_PLATFORM_WIN32_NTtVER_PLATFORM_WIN32_WINDOWSs%i.%i.%iii
s
Service Pack tSPs)SOFTWARE\Microsoft\Windows\CurrentVersioniit95i
t98iZtMetpostMeit2000s,SOFTWARE\Microsoft\Windows NT\CurrentVersiontNTitXPit
2003Servertpost2003s%i.%it
SystemRoottCurrentBuildNumberRtCurrentType(Ri(RRfR~RRRtwin32conRRRRRs(RzRtcsdtptypeRR~RRRRRRtmajtmintbuildnotplattregkeyt	keyCurVerRp((s$/usr/local/lib/python2.5/platform.pyt	win32_versf"





















c	Cs}ddkl}ddk}g}|i}xK|D]C}y|||Wq2t|ifj
o||q2Xq2W|S(Ni(tgestalt(RtMacOSRktRuntimeErrortError(t	selectorsRRRRIRktselector((s$/usr/local/lib/python2.5/platform.pyt_mac_ver_lookup$s	cCst|dS(Ni(thex(tbcd((s$/usr/local/lib/python2.5/platform.pyt_bcd2str1sc	Csyddk}ddk}Wn tj
o|||fSnXtd&\}}}|o|d@d?}|d@d	?}	|d
@}
||	fd'jo,td(\}}	}
d||	|
f}qdt||	|
f}n|ot|d@d?}|d@d?}	|d@d?}|d@d?}|d@}
dt||	|f}t|
}
hdd<dd<dd<dd<i|d }|||
f}n|o1hd!d"<d#d$<d%d<i|d }n|||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.

        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/

    iNtsysvtsysutsysaiiiiii
tsys1tsys2tsys3s%i.%i.%is%s.%i.%il~iiiiiitdevelopmenti talphai@tbetai`tfinaliRt68kitPowerPCiti386(ssysvssysussysa(i
i(RRR(RRRfRRRmRd(RztversioninfotmachineRRRRRtmajortminortpatchtbugfixtstagetnonrelR((s$/usr/local/lib/python2.5/platform.pytmac_ver5s@


		
	cCs3ddkl}y|i|SWn|SnXdS(Ni(tSystem(t	java.langRtgetProperty(RRR((s$/usr/local/lib/python2.5/platform.pyt
_java_getpropps
cCsyddk}Wn#tj
o||||fSnXtd|}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 '').

    iNsjava.vendorsjava.versionsjava.vm.namesjava.vm.vendorsjava.vm.versionsjava.os.archsjava.os.namesjava.os.version(RRfR(Rztvendortvminfotosinfotjavatvm_namet
vm_releaset	vm_vendortos_namet
os_versiontos_arch((s$/usr/local/lib/python2.5/platform.pytjava_verxs"
cCs7|djod|||fSn	|djo|djo|||fSnti|d}|oZyt|d}Wntj
oqX|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 ServertSunOSt5Rjiit6tSolaristIRIX64tIRIXs (64bit)t64bitRbRttWindows(swin32Rt(R$R%RmRLRnRo(RPRzRRIR((s$/usr/local/lib/python2.5/platform.pytsystem_aliass2	










cGs)tittitt|d}ti}||dd}||dd}||dd}||dd}||dd}||dd}||d	d}||d
d}||dd}x-||d
d}||joPn|}qx |ddjo|d }qW|S(sq Helper to format the platform string in a filename
        compatible format e.g. "system-version-machine".
    Rt t_t/s\t:t;t"t(t)tunknownRs--i(R$RoRlR&tfilterR	treplace(targsRiRtcleaned((s$/usr/local/lib/python2.5/platform.pyt	_platforms.			
	c	CsYyddk}Wntj
o|SnXy|iSWn|ij
o|SnXdS(s8 Helper to determine the node name of this machine.
    iN(tsocketRftgethostnameR<(RR((s$/usr/local/lib/python2.5/platform.pyt_nodes	tabspathcCs-||p|||}n||S(N((R!tisabsRotgetcwdtnormpath((s$/usr/local/lib/python2.5/platform.pyt_abspaths
cCsat|}xNtii|o:tiitiitii|ti|}qW|S(sT In case filepath is a symlink, follow it until a
        real file is reached.
    (RR R!tislinkRRotdirnametreadlink(tfilepath((s$/usr/local/lib/python2.5/platform.pyt_follow_symlinkss	2cCstidjo|Snytid|}Wn ttifj
o|SnXti|i}|i	}|p|o|Sn|SdS(s. Interface to the system's uname command.
    RuRbRtRvsuname %s 2> /dev/nullN(Ruswin32swin16sos2(
RhRiR RatAttributeErrorR<R$R&RR(toptionRRtoutputRY((s$/usr/local/lib/python2.5/platform.pyt
_syscmd_unames	cCst|}ytid|}Wn ttifj
o|SnXti|i}|i}|p|o|Sn|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.

    sfile %s 2> /dev/nullN(	RR RaRR<R$R&RR(ttargetRRRRY((s$/usr/local/lib/python2.5/platform.pyt_syscmd_file1s
	t	WindowsPERtMSDOSs[\s,]c	Cs|p_ddk}y|id}Wn%|ij
o|id}nXt|dd}nt|d}|oj|tijoZtiti	o9tti	\}}|o
|}n|o
|}qn||fSnt
|d}d	|jo||fSnd
|jo
d}n/d|jo
d
}nd|jo
d}nd|jo
d}n]d|jo!d|jo
d}qd}n/d|jo
d}nd|jo
d}n||fS(s Queries the given executable (defaults to the Python interpreter
        binary) for various architecture information.

        Returns a tuple (bits,linkage) which contains information about
        the bit architecture and the linkage format used for the
        executable. Both values are returned as strings.

        Values that cannot be determined are returned as given by the
        parameter presets. If bits is given as '', the sizeof(pointer)
        (or sizeof(long) on Python version < 1.5.2) is used as
        indicator for the supported pointer size.

        The function relies on the system's "file" command to do the
        actual work. This is available on most if not all Unix
        platforms. On some non-Unix platforms where the "file" command
        does not exist and the executable is set to the Python interpreter
        binary defaults from _default_architecture are used.

    iNtPRIitbitRiRs32-bitt32bittN32tn32bits64-bitRtELFtPERRtCOFFsMS-DOSR(tstructtcalcsizeR<RnRRhRt_default_architecturethas_keyRit_architecture_split(	RtbitstlinkageRtsizeRtbRItfileout((s$/usr/local/lib/python2.5/platform.pytarchitectureSsJ

















c
Cs&tdj	otSnyti\}}}}}Wntj
osti}d}d}t}d}d}d}|djo1t\}}}}|o|o
d}qn|o0t	|\}}}|djo
d}qn|djo2|p!|djo
d}qd	}nd}qV|d
 djoBt
\}}	}
}d}ti|
d
}|p
|	}qqVti
djo%t\}\}}}
}d}qVnX|djo|p
|djo|}d}nyddk}Wntj
oqVX|idd\}}|djo
d}qVd}ntdd}|djo
d}n|djo
d}n|djo
d}n|djo
d}n|djo
d}n|djo
d}n|djo|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 ''.

    RiRbisMicrosoft WindowsRRtRt16bitiRtJavas, tmacRtOpenVMSt0iNsSYI$_CPUitAlphatVAXs-pRt	MicrosofttVista(swin32swin16(t_uname_cacheRWR tunameRRhRiRRR}RR$RoRRtvms_libRftgetsyiR(RPtnodeRzRRt	processortuse_syscmd_verRRRRRRRRtcsidt
cpu_number((s$/usr/local/lib/python2.5/platform.pyRs
		
























cCstdS(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/local/lib/python2.5/platform.pyRPscCstdS(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/local/lib/python2.5/platform.pyR$scCstdS(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/local/lib/python2.5/platform.pyRz.scCstdS(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/local/lib/python2.5/platform.pyR7scCstdS(st Returns the machine type, e.g. 'i386'

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

    i(R(((s$/usr/local/lib/python2.5/platform.pyR@scCstdS(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/local/lib/python2.5/platform.pyRIs
sB([\w.+]+)\s*\(#?([^,]+),\s*([\w ]+),\s*([\w :]+)\)\s*\[([^\]]+)\]?cCstdj	otSntitii\}}}}}|d|}ti|d}t	|djo#|i
dti|d}n||||fatS(s Returns a parsed version of Python's sys.version as tuple
        (version, buildno, builddate, compiler) referring to the Python
        version, 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').

    RRjiRN(t_sys_version_cacheRWt_sys_version_parserR>RhRRR$R%R	RkRo(RRt	builddatet	buildtimetcompilerRI((s$/usr/local/lib/python2.5/platform.pyt_sys_version\s
'
cCstdS(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(R'(((s$/usr/local/lib/python2.5/platform.pytpython_versionvscCstitddS(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).

    iRj(R$R%R'(((s$/usr/local/lib/python2.5/platform.pytpython_version_tuples	cCstdd!S(sh Returns a tuple (buildno, builddate) stating the Python
        build number and date as strings.

    ii(R'(((s$/usr/local/lib/python2.5/platform.pytpython_buildscCstdS(sS Returns a string identifying the compiler used for compiling
        Python.

    i(R'(((s$/usr/local/lib/python2.5/platform.pytpython_compilersic	Cspti||fd}|dj	o|Snt\}}}}}}||jo
d}n|ot|||\}}}n|djoKt|\}	}
}}|ot||}
q\t||||}
n|d	jotd\}}}|o-|o%t||||d|||}
q\tt	i
\}}t||||d||}
n|djo]t\}}}\}}}|ot|||}
q\t|||d|||}
n|djo0|ot||}
q\t|||}
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.

    RRtLinuxtwithRtonRN(R,(
t_platform_cacheRdRWRRRRRJRRhRRR(taliasedttersetresultRPRRzRRRtreltversRRRiR+tdistversiontdistidtlibcnametlibcversionR;tvRRRRR
R((s$/usr/local/lib/python2.5/platform.pyRisP






t__main__R1s--terset
nonaliaseds--nonaliased(sSuSER7R8R9R:((swin32swin16sdossos2(RRR(RRR(RRR(Rs	WindowsPE(RsWindows(RsMSDOS(DR\t
__copyright__t__version__RhR$R tretcompileRRRR6R=R@RJRKRWRaRsRyR}RRRRRRRRRRRgR!RRoRRRRRRRRR%R	RRRRPRRzRRRR#R"R'R(R)R*R+R/RiRZtargvR1R0texit(((s$/usr/local/lib/python2.5/platform.pys<module>
s|b0.	2	-6!	2
f
	;	#	6	$			T	r			
									
			
R


Man Man