#NEWLINE# def _inspect_environment( ) : #NEWLINE# #INDENT# "Return relevant information from the cgi environment.\n\n  This is mostly split out to simplify testing.\n\n  Returns:\n    A tuple: (app_version, conf_version, development)\n    app_version: the major version of the current application.\n    conf_version: the current configuration version.\n    development: a boolean, True if we're running under devappserver.\n  " #NEWLINE# app_version = os . environ [ 'CURRENT_VERSION_ID' ] . rsplit ( '.' , 1 ) [ 0 ] #NEWLINE# conf_version = int ( os . environ . get ( 'CURRENT_CONFIGURATION_VERSION' , '0' ) ) #NEWLINE# development = os . environ . get ( 'SERVER_SOFTWARE' , '' ) . startswith ( 'Development/' ) #NEWLINE# return ( app_version , conf_version , development )