3
]ð]�  ã               @   s8   d Z ddlZdd„ Zdd„ Zdd„ Zd	d
„ Zdd„ ZdS )zB
This module provides means to detect the App Engine environment.
é    Nc               C   s
   dt jkS )NÚAPPENGINE_RUNTIME)ÚosÚenviron© r   r   úE/tmp/pip-build-irfnccat/urllib3/urllib3/contrib/_appengine_environ.pyÚis_appengine   s    r   c               C   s   t ƒ otjd dkS )a#  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   Zpython27)r   r   r   r   r   r   r   Úis_appengine_sandbox   s    r   c               C   s   t ƒ otjjddƒjdƒS )NÚSERVER_SOFTWAREÚ zDevelopment/)r   r   r   ÚgetÚ
startswithr   r   r   r   Úis_local_appengine   s    r   c               C   s   t ƒ otjjddƒjdƒS )Nr	   r
   zGoogle App Engine/)r   r   r   r   r   r   r   r   r   Úis_prod_appengine   s    r   c               C   s   dS )zDeprecated.Fr   r   r   r   r   Úis_prod_appengine_mvms"   s    r   )Ú__doc__r   r   r   r   r   r   r   r   r   r   Ú<module>   s   
