
,&Qc           @`  s   d  d l  m Z m Z d  d l Z d  d l Z d  d l Z d  d l Z d  d l Z d  d l m	 Z	 e	 j
 rt d Z n d Z d   Z i d d 6d d	 6d
 d
 6d d 6d d 6Z i e j d 6Z d d d     YZ e   Z e j   Z e j Z d S(   i    (   t   divisiont   absolute_importN(   t   compatt   _threadt   threadc           C`  s   d t  j d  S(   s?   
    Returns the Python version as a dot-separated string.
    s   %s.%s.%si   (   t   syst   version_info(    (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/python/runtime.pyt   shortPythonVersion   s    t   win32t   ntt   cet   posixt   javas   org.python.modules.ost   Platformc           B`  s   e  Z d  Z e j e j  Z e e	 j e e
 j
   Z e j Z d d d  Z d   Z d   Z d   Z d   Z d   Z d   Z d   Z d	   Z d
   Z RS(   sC   
    Gives us information about the platform we're running on.
    c         C`  sX   | d  k	 r< t j |  |  _ t j |  j t j  |  _ n  | d  k	 rT | |  _ n  d  S(   N(   t   Nonet   knownPlatformst   gett   typet   _timeFunctionst   timet   secondst	   _platform(   t   selft   namet   platform(    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/python/runtime.pyt   __init__8   s
    c         C`  s   |  j  d k S(   s   
        Do we know about this platform?

        @return: Boolean indicating whether this is a known platform or not.
        @rtype: C{bool}
        N(   R   R   (   R   (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/python/runtime.pyt   isKnown@   s    c         C`  s   |  j  S(   so   
        Get platform type.

        @return: Either 'posix', 'win32' or 'java'
        @rtype: C{str}
        (   R   (   R   (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/python/runtime.pyt   getTypeJ   s    c         C`  s   |  j  d k S(   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}
        t   darwin(   R   (   R   (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/python/runtime.pyt   isMacOSXT   s    c         C`  s    t  j d t d d |  j   S(   s8  
        Are we running in Windows NT?

        This is deprecated and always returns C{True} on win32 because
        Twisted only supports Windows NT-derived platforms at this point.

        @return: C{True} if the current platform has been detected as
            Windows NT.
        @rtype: C{bool}
        sg   twisted.python.runtime.Platform.isWinNT was deprecated in Twisted 13.0. Use Platform.isWindows instead.t
   stackleveli   (   t   warningst   warnt   DeprecationWarningt	   isWindows(   R   (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/python/runtime.pyt   isWinNT^   s    c         C`  s   |  j    d k S(   s   
        Are we running in Windows?

        @return: C{True} if the current platform has been detected as
            Windows.
        @rtype: C{bool}
        R   (   R   (   R   (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/python/runtime.pyR"   p   s    c         C`  s4   t  t d d  d k	 r, t j   d d k St Sd S(   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}
        t   getwindowsversioni    i   N(   t   getattrR   R   R$   t   False(   R   (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/python/runtime.pyt   isVista{   s    c         C`  s   |  j  j d  S(   s   
        Check if current platform is Linux.

        @return: C{True} if the current platform has been detected as Linux.
        @rtype: C{bool}
        t   linux(   R   t
   startswith(   R   (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/python/runtime.pyt   isLinux   s    c         C`  s4   y t  j t  d d k SWn t k
 r/ t SXd S(   s   
        Can threads be created?

        @return: C{True} if the threads are supported on the current platform.
        @rtype: C{bool}
        i    N(   t   impt   find_modulet   _threadModuleR   t   ImportErrorR&   (   R   (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/python/runtime.pyt   supportsThreads   s    c         C`  s\   y d d l  m } m } Wn t k
 r. t SXy t j |    Wn | k
 rW t SXt S(   sf   
        Return C{True} if we can use the inotify API on this platform.

        @since: 10.1
        i    (   t   INotifyErrort   init(   t   twisted.python._inotifyR0   R1   R.   R&   t   ost   closet   True(   R   R0   R1   (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/python/runtime.pyt   supportsINotify   s    N(   t   __name__t
   __module__t   __doc__R   R   R3   R   R   t   staticmethodR   R   R   R   R   R   R   R   R   R   R   R#   R"   R'   R*   R/   R6   (    (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/python/runtime.pyR   /   s   		
	
	
				
	(    (   t
   __future__R    R   R3   R   R   R+   R   t   twisted.pythonR   t   _PY3R-   R   R   R   R   R   R   t   platformTypeR   (    (    (    sH   /var/www/html/hlstest/hls-proxy/Twisted-13.2.0/twisted/python/runtime.pyt   <module>   s,   			
	