#NEWLINE# def api_translate( self ) : #NEWLINE# #INDENT# self . standard_dependencies = set ( ) #NEWLINE# self . used = set ( ) #NEWLINE# self . leaked_nodes = [ ] #NEWLINE# transformed = self . transform ( self . tree ) #NEWLINE# for l in self . used : #NEWLINE# #INDENT# m = self . dependencies . get ( l , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) . get ( '@all' ) #NEWLINE# if m : #NEWLINE# #INDENT# if isinstance ( m , list ) : #NEWLINE# #INDENT# self . standard_dependencies |= set ( m ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . standard_dependencies . add ( m ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# transformed . dependencies = [ Node ( 'dependency' , name = m ) for name in self . standard_dependencies ] #NEWLINE# return transformed