#NEWLINE# def __init__( self , config , path = None , bbb_config = False , plugins = None ) : #NEWLINE# #INDENT# ConfigSection . __init__ ( self ) #NEWLINE# self . config = config #NEWLINE# if ( path is None ) : #NEWLINE# #INDENT# if ( getattr ( config , 'read' , None ) is None ) : #NEWLINE# #INDENT# path = os . path . dirname ( config ) #NEWLINE# #UNINDENT# #UNINDENT# self . path = path #NEWLINE# self . macro_cleaners = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# if ( plugins is not None ) : #NEWLINE# #INDENT# for plugin in plugins . values ( ) : #NEWLINE# #INDENT# for massager in plugin . get ( 'get_massagers' , ( lambda : [ ] ) ) ( ) : #NEWLINE# #INDENT# self . add_massager ( massager ) #NEWLINE# #UNINDENT# if ( 'get_macro_cleaners' in plugin ) : #NEWLINE# #INDENT# self . macro_cleaners . update ( plugin [ 'get_macro_cleaners' ] ( self ) )