#NEWLINE# def _set_proxy( self , request , scheme ) : #NEWLINE# #INDENT# ( creds , proxy ) = self . proxies [ scheme ] #NEWLINE# request . meta [ 'proxy' ] = proxy #NEWLINE# if creds : #NEWLINE# #INDENT# request . headers [ 'Proxy-Authorization' ] = ( b'Basic ' + creds )