Your IP : 172.28.240.42


Current Path : /usr/lib/python2.7/dist-packages/twisted/python/
Upload File :
Current File : //usr/lib/python2.7/dist-packages/twisted/python/runtime.pyc

ó
âÂMc@s§ddlZddlZddlZddlZd„Zidd6dd6dd6dd6dd6Ziejd6Zd	dd
„ƒYZeƒZej	ƒZ
ejZdS(iÿÿÿÿNcCsDtj}|d@d?}|d@d?}|d@d?}d|||fS(Nl~ilþilis%s.%s.%s(tsyst
hexversion(thvtmajortminortteeny((s:/usr/lib/python2.7/dist-packages/twisted/python/runtime.pytshortPythonVersion
s
	twin32tnttcetposixtjavasorg.python.modules.ostPlatformcBs›eZdZejejƒZee	jee
j
ƒƒZej
Zd
d
d„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd	„ZRS(s8Gives us information about the platform we're running oncCsX|dk	r<tj|ƒ|_tj|jtjƒ|_n|dk	rT||_ndS(N(tNonetknownPlatformstgetttypet_timeFunctionsttimetsecondst	_platform(tselftnametplatform((s:/usr/lib/python2.7/dist-packages/twisted/python/runtime.pyt__init__(s
cCs
|jdkS(sDo we know about this platform?N(RR
(R((s:/usr/lib/python2.7/dist-packages/twisted/python/runtime.pytisKnown0scCs|jS(s!Return 'posix', 'win32' or 'java'(R(R((s:/usr/lib/python2.7/dist-packages/twisted/python/runtime.pytgetType4scCs
|jdkS(s“Check if current platform is Mac OS X.

        @return: C{True} if the current platform has been detected as OS X
        @rtype: C{bool}
        tdarwin(R(R((s:/usr/lib/python2.7/dist-packages/twisted/python/runtime.pytisMacOSX8scCsg|jƒdkrcddl}y-|j|jdƒ}|j|dƒdSWqctk
r_dSXndS(sAre we running in Windows NT?RiÿÿÿÿNs,Software\Microsoft\Windows NT\CurrentVersiont
SystemRootii(Rt_winregt	OpenKeyExtHKEY_LOCAL_MACHINEtQueryValueExtWindowsError(RRtk((s:/usr/lib/python2.7/dist-packages/twisted/python/runtime.pytisWinNT@s	
cCs|jƒdkS(NR(R(R((s:/usr/lib/python2.7/dist-packages/twisted/python/runtime.pyt	isWindowsNscCs4ttddƒdk	r,tjƒddkStSdS(s¹
        Check if current platform is Windows Vista or Windows Server 2008.

        @return: C{True} if the current platform has been detected as Vista
        @rtype: C{bool}
        tgetwindowsversioniiN(tgetattrRR
R&tFalse(R((s:/usr/lib/python2.7/dist-packages/twisted/python/runtime.pytisVistaRscCs4ytjdƒddkSWntk
r/tSXdS(s Can threads be created?
        tthreadiN(timptfind_moduleR
tImportErrorR((R((s:/usr/lib/python2.7/dist-packages/twisted/python/runtime.pytsupportsThreads_s
cCs\yddlm}m}Wntk
r.tSXytj|ƒƒWn|k
rWtSXtS(sf
        Return C{True} if we can use the inotify API on this platform.

        @since: 10.1
        iÿÿÿÿ(tINotifyErrortinit(ttwisted.python._inotifyR/R0R-R(tostclosetTrue(RR/R0((s:/usr/lib/python2.7/dist-packages/twisted/python/runtime.pytsupportsINotifyhs

N(t__name__t
__module__t__doc__RRR2RRtstaticmethodRRRRRRR
RRRRR$R%R)R.R5(((s:/usr/lib/python2.7/dist-packages/twisted/python/runtime.pyR!s							
		((R2RRR+RRRRRRtplatformTypeR(((s:/usr/lib/python2.7/dist-packages/twisted/python/runtime.pyt<module>s 	

X