ó
º9—^c           @   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   d t  j k S(   Nt   APPENGINE_RUNTIME(   t   ost   environ(    (    (    sD   /tmp/pip-unpacked-wheel-6aYHHy/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
    R    t   python27(   R   R   R   (    (    (    sD   /tmp/pip-unpacked-wheel-6aYHHy/urllib3/contrib/_appengine_environ.pyt   is_appengine_sandbox   s    c           C   s%   t  ƒ  o$ t j j d d ƒ j d ƒ S(   Nt   SERVER_SOFTWAREt    s   Development/(   R   R   R   t   gett
   startswith(    (    (    sD   /tmp/pip-unpacked-wheel-6aYHHy/urllib3/contrib/_appengine_environ.pyt   is_local_appengine   s    c           C   s%   t  ƒ  o$ t j j d d ƒ j d ƒ S(   NR   R   s   Google App Engine/(   R   R   R   R   R	   (    (    (    sD   /tmp/pip-unpacked-wheel-6aYHHy/urllib3/contrib/_appengine_environ.pyt   is_prod_appengine   s    c           C   s   t  S(   s   Deprecated.(   t   False(    (    (    sD   /tmp/pip-unpacked-wheel-6aYHHy/urllib3/contrib/_appengine_environ.pyt   is_prod_appengine_mvms"   s    (   t   __doc__R   R   R   R
   R   R   (    (    (    sD   /tmp/pip-unpacked-wheel-6aYHHy/urllib3/contrib/_appengine_environ.pyt   <module>   s   		
		