ó
Đ˛Ebc           @   sC   d  Z  d d l Z d   Z d   Z d   Z d   Z d   Z d S(   sB   
This module provides means to detect the App Engine environment.
i˙˙˙˙Nc           C   s   t    p t   S(   N(   t   is_local_appenginet   is_prod_appengine(    (    (    sK   /tmp/pip-build-UPPWic/pip/pip/_vendor/urllib3/contrib/_appengine_environ.pyt   is_appengine   s    c           C   s   t    o t j d d k S(   s#  Reports if the app is running in the first generation sandbox.

    The second generation runtimes are technically still in a sandbox, but it
    is much less restrictive, so generally you shouldn't need to check for it.
    see https://cloud.google.com/appengine/docs/standard/runtimes
    t   APPENGINE_RUNTIMEt   python27(   R   t   ost   environ(    (    (    sK   /tmp/pip-build-UPPWic/pip/pip/_vendor/urllib3/contrib/_appengine_environ.pyt   is_appengine_sandbox   s    c           C   s+   d t  j k o* t  j j d d  j d  S(   NR   t   SERVER_SOFTWAREt    s   Development/(   R   R   t   gett
   startswith(    (    (    sK   /tmp/pip-build-UPPWic/pip/pip/_vendor/urllib3/contrib/_appengine_environ.pyR       s    c           C   s+   d t  j k o* t  j j d d  j d  S(   NR   R   R	   s   Google App Engine/(   R   R   R
   R   (    (    (    sK   /tmp/pip-build-UPPWic/pip/pip/_vendor/urllib3/contrib/_appengine_environ.pyR      s    c           C   s   t  S(   s   Deprecated.(   t   False(    (    (    sK   /tmp/pip-build-UPPWic/pip/pip/_vendor/urllib3/contrib/_appengine_environ.pyt   is_prod_appengine_mvms"   s    (   t   __doc__R   R   R   R    R   R   (    (    (    sK   /tmp/pip-build-UPPWic/pip/pip/_vendor/urllib3/contrib/_appengine_environ.pyt   <module>   s   		
		