def _is_msie8or9():
 if ((request.user_agent is None) or (request.user_agent.browser != 'msie') or (request.user_agent.version is None)):
  return False
 version = tuple(map(int, request.user_agent.version.split('.')))
 return ((8, 0) <= version < (10, 0))

def _is_msie8or9 ( ) : if ( ( request . user_agent is None ) or ( request . user_agent . browser != 'msie' ) or ( request . user_agent . version is None ) ) : return False version = tuple ( map ( int , request . user_agent . version . split ( '.' ) ) ) return ( ( 8 , 0 ) <= version < ( 10 , 0 ) )
returns true if and only if the user agent of the client making the request indicates that it is microsoft internet explorer 8 or 9 .