def _is_dev2_environment():
 return (os.environ.get('SERVER_SOFTWARE', '') == 'Development/2.0')

def _is_dev2_environment ( ) : return ( os . environ . get ( 'SERVER_SOFTWARE' , '' ) == 'Development/2.0' )
indicates whether this code is being run in devappserver2 .