#NEWLINE# def __init__( self , session = None , soup_config = None , requests_adapters = None ) : #NEWLINE# #INDENT# self . session = ( session or requests . Session ( ) ) #NEWLINE# if ( adapter is not None ) : #NEWLINE# #INDENT# for ( adaptee , adapter ) in requests_adapters . items ( ) : #NEWLINE# #INDENT# self . session . mount ( adaptee , adapter ) #NEWLINE# #UNINDENT# #UNINDENT# self . soup_config = ( soup_config or dict ( ) )