#NEWLINE# def getClosureVariable( self , variable_name ) : #NEWLINE# #INDENT# result = self . provider . getVariableForClosure ( variable_name = variable_name ) #NEWLINE# assert ( result is not None ) , result #NEWLINE# if result . isMaybeLocalVariable ( ) : #NEWLINE# #INDENT# result = result . getMaybeVariable ( ) #NEWLINE# #UNINDENT# if ( not result . isModuleVariable ( ) ) : #NEWLINE# #INDENT# self . addClosureVariable ( result ) #NEWLINE# #UNINDENT# return result