#NEWLINE# def get_response( args , config_dir ) : #NEWLINE# #INDENT# 'Send the request and return a `request.Response`.' #NEWLINE# ssl_version = None #NEWLINE# if args . ssl_version : #NEWLINE# #INDENT# ssl_version = SSL_VERSION_ARG_MAPPING [ args . ssl_version ] #NEWLINE# #UNINDENT# requests_session = get_requests_session ( ssl_version ) #NEWLINE# requests_session . max_redirects = args . max_redirects #NEWLINE# if ( ( not args . session ) and ( not args . session_read_only ) ) : #NEWLINE# #INDENT# kwargs = get_requests_kwargs ( kwargs ) #NEWLINE# if args . debug : #NEWLINE# #INDENT# dump_request ( kwargs ) #NEWLINE# #UNINDENT# response = requests_session . request ( ** kwargs ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# response = sessions . get_response ( requests_session = requests_session , args = args , config_dir = config_dir , session_name = ( args . session or args . session_read_only ) , read_only = bool ( args . session_read_only ) ) #NEWLINE# #UNINDENT# return response